The org.apache.avalon.excalibur.component
package
in Excalibur will allow you to manage components specified in
a configuration file. The beauty of this approach is that the
ComponentManagers and ComponentSelectors become the Container
and automagically maintain your Component's lifecycle.
The Excalibur Component Management infrastructure uses a
RoleManager to help your configuration files remain readable.
All classes are instantiated using the current thread's
ContextClassLoader--unless you pass a different one in the
constructor.