Type: New Feature
Affects Version/s: None
Fix Version/s: future
Number of attachments :
Need to have a flexible mechanism for creating Application objects.
To do this we can have an interface to build the Application that accepts a map of key-value pairs.
The key-value pairs would be specific to each different container type. To help work with Loom container we could create a LoomConfig that had a simple facade to set key-values.
A sample run
LoomConfig config = new LoomConfig();
config.setAssembly( "resource://ldapd/server/assembly.xml" );
config.setConfig( "resource://ldapd/server/config.xml" );
Map map = config.toMap();
Application container = (Application)ContainerFactory.create( map );
MyBlock block = (MyBlock)container.getBlock( someName );
ContainerFactory.destroy( container );