[jboss-jira] [JBoss JIRA] Updated: (JBMICROCONT-165) Add support for Install items
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Wed Mar 28 11:18:46 EDT 2007
[ http://jira.jboss.com/jira/browse/JBMICROCONT-165?page=all ]
Adrian Brock updated JBMICROCONT-165:
-------------------------------------
Issue Type: Feature Request (was: Task)
JBoss Forum Reference: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032377#4032377
> 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
> Reporter: Adrian Brock
> Assigned To: Ales Justin
>
> 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