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

jira-yCVjj/[email protected] Sat, 4 Dec 2004 15:00:21 -0500 (EST)
Newsgroups gmane.comp.java.nanocontainer.cvs
Message-ID <[email protected]>
The following comment has been added to this issue:

     Author: Obie Fernandez
    Created: Sat, 4 Dec 2004 2:59 PM
       Body:
This feature was a wee bit more complicated to implement that I thought it would be. Without a guard clause in LifecycleVisitor you definitely get some nasty infinite loops.
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/NANO-110?page=comments#action_27486

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