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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
