[nanocontainer-scm] [jira] Updated: (NANO-110) allow self-registration of container instance via script

jira-yCVjj/[email protected] Sat, 4 Dec 2004 14:58:21 -0500 (EST)
Newsgroups gmane.comp.java.nanocontainer.cvs
Message-ID <[email protected]>
The following issue has been updated:

    Updater: Obie Fernandez (mailto:[email protected])
       Date: Sat, 4 Dec 2004 2:56 PM
    Comment:
Please add to the testmodel java source tree.
    Changes:
             Attachment changed to TestDependsOnPicoContainer.java
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://jira.codehaus.org/browse/NANO-110?page=history

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/NANO-110

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: NANO-110
    Summary: allow self-registration of container instance via script
       Type: Improvement

     Status: Unassigned
   Priority: Major

 Original Estimate: 2 days
 Time Spent: Unknown
  Remaining: 2 days

    Project: NanoContainer
 Components: 
             core

   Assignee: 
   Reporter: Obie Fernandez

    Created: Wed, 24 Nov 2004 11:13 AM
    Updated: Sat, 4 Dec 2004 2:56 PM

Description:
As discussed with Aslak and Paul (11/23/2004)...

We agreed there are cases where it is desirable for PicoContainer to self-register itself and become available for injection into child components. The guard code that used to prevent this operation from being done manually has been removed by Paul (see PICO-226).

Instead of introducing a ContainerExposingPicoContainer into Pico and having to specify it as the container-implementation, we will add an optional register-self attribute to the scripting system. This attribute will cause nano to register the container within itself.

Example:

&lt;container register-self=true&gt;
  &lt;component-implementation class='org.nanocontainer.testmodel.DefaultWebServerConfig'/&gt; ...


---------------------------------------------------------------------
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