avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <pro...@apache.org>
Subject Re: [RT] IoC type, well, something
Date Tue, 18 Nov 2003 03:17:10 GMT
On Nov 17, 2003, at 1:59 PM, Leo Sutic wrote:
> Dependencies are easy:
>
>     /**
>      * @@Dependency()
>      */
>     private final MailServer mailServer;
>
> Tells the container to set this field to a MailServer component.

Jason van Zyl has some code in Plexus to do just that. I think it works 
without metadata, ie if a field is of a type that the container knows 
about, it sets it.

>     <component max-threads="8">
>         <foreground-color red="255" green="255" blue="255"/>
>         <background-color red="255" green="255" blue="255"/>
>     </component>

Jason also has some code to go from Configuration -> Beans -> 
Configuration, using XStream, <http://xstream.codehaus.org>. That's in 
Plexus also.
-pete


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message