[jira] Updated: (LOOM-32) LoomConfig Application Creator

jira-yCVjj/[email protected] Wed, 14 Apr 2004 20:49:42 -0400 (EDT)
Newsgroups gmane.comp.java.jcontainer.interest
Message-ID <[email protected]>
The following issue has been updated:

    Updater: peter royal (mailto:[email protected])
       Date: Wed, 14 Apr 2004 8:47 PM
    Changes:
             Fix Version changed to future
             Fix Version changed from 1.1
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=LOOM-32&page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=LOOM-32

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: LOOM-32
    Summary: LoomConfig Application Creator
       Type: New Feature

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: loom
   Fix Fors:
             future

   Assignee: 
   Reporter: Mauro Talevi

    Created: Wed, 30 Jul 2003 4:36 AM
    Updated: Wed, 14 Apr 2004 8:47 PM

Description:
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" );
config.set...;

Map map = config.toMap();

Application container = (Application)ContainerFactory.create( map );

...application running...

MyBlock block = (MyBlock)container.getBlock( someName );
block.doMagic();

...application running...

ContainerFactory.destroy( container );



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira