[jboss-jira] [JBoss JIRA] Updated: (JBMICROCONT-165) Add support for Install items

Ales Justin (JIRA) jira-events at lists.jboss.org
Sat Jul 21 02:07:47 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBMICROCONT-165?page=all ]

Ales Justin updated JBMICROCONT-165:
------------------------------------

        Fix Version/s: JBossMC-2.0.0.Beta4
    Affects Version/s:  JBossMC_2_0_0 Beta3

> Add support for Install items
> -----------------------------
>
>                 Key: JBMICROCONT-165
>                 URL: http://jira.jboss.com/jira/browse/JBMICROCONT-165
>             Project: JBoss MicroContainer
>          Issue Type: Feature Request
>          Components: Dependency
>    Affects Versions:  JBossMC_2_0_0 Beta3
>            Reporter: Adrian Brock
>         Assigned To: Ales Justin
>             Fix For: JBossMC-2.0.0.Beta4
>
>
> We already support contextual dependency injection
> (injected based on class)
> @Inject
> public void setSomething(X x);
> and installation into "repositories"
> <bean name="Queue1">
>    <install bean="JMSBroker" method="addQueue"/>
> </bean>
> There should be additional support for more dynamic injection/installation.
> In annotations the three new features are:
> 1) The injection is dynamic
> - the service will start even if the dependency is not satisifed
> - the service might get the injection later when it is available
> @Inject(optional=true)
> public void setSomething(X x);
> 2) Installation of "services" by type
> - Inject all implementors of a particular class
> - Keep reinjecting as implementors come and go
> - The cardinality specifies the minimum number
> that must exist for the service to start
> @Install(cardinality=0)
> public void setSomethings(Collection<X> x)
> 3) Like (2) but with add/remove methods
> @Install(cardinality=0)
> public void addSomething(X x)
> @Uninstall
> public void removeSomething(X x)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list