Plexus integartion. You need three optional files: plexus-request.xml, plexus-session.xml, and plexus-application.xml.
The syntax of these files is:
<plexus> <components> <component> <role>com.acme.MyBean</role> <implementation>com.acme.MyBean|com.acme.MyBeanImpl</implementation> <componentComposer>field|setter|?</componentComposer> <requirements> <requirement> <role>com.acme.MyOtherBean</role> </requirement> </requirements> <configuration> <foo>123</foo> <bar>hello, world</bar> </configuration> </component> </components> </plexus>
@author
Emmanuel Venisse