avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@codehaus.org
Subject [jira] Assigned: (PNIX-22) PhoenixConfig Application Creator
Date Wed, 06 Aug 2003 04:52:44 GMT
Message:

   The following issue has been re-assigned.

   Assignee:  (mailto:)
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=PNIX-22


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: PNIX-22
    Summary: PhoenixConfig Application Creator
       Type: New Feature

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: 0 minutes

    Project: phoenix
 Components: 
             Container Architecture
   Fix Fors:
             4.1
   Versions:
             4.1

   Assignee: 
   Reporter: Peter Donald

    Created: Sat, 5 Apr 2003 10:02 PM
    Updated: Tue, 5 Aug 2003 11:51 PM

Description:
Phoenix needs 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
Phoenix containers we could create a PhoenixConfig that had a simple facade to set key-values.

A sample run

PhoenixConfig config = new PhoenixConfig();
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message