[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Way to control when injection happens?

adrian@jboss.org do-not-reply at jboss.com
Tue Oct 14 12:26:47 EDT 2008


"scott.stark at jboss.org" wrote : 
  | Correct? Is there a full generalization super-depend element, whenRequired=X, dependentState=Y? The AbstractDependencyItem class supports this information.
  | 

Yes. There's no generic dependency in the xml, but some of the other
xml lets you set both, e.g. install
Programmatically, you can add whatever dependency you like.

There's a feature request somewhere to let you do:

  | <bean ...>
  |    <dependencies>
  |        <my-dependency1 xmlns="foo" .../>
  |        <my-dependency2 xmlns="foo" .../>
  |    </dependencies>
  | 

i.e. write your own dependency like you can write your own "Requirement"
in the classloaders. :-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182198#4182198

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182198



More information about the jboss-dev-forums mailing list