[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Supporting qualifiers in MC

alesj do-not-reply at jboss.com
Thu Nov 26 06:09:25 EST 2009


"kabir.khan at jboss.com" wrote : 
  | Maybe I should change 'Wanted' to 'Required'? We could add 'Optional' etc.
  | 
Yes, sounds good, both.

"kabir.khan at jboss.com" wrote : 
  | I am not sure if you are saying you think I should turn off the 'relaxed' stuff shown above requiring exact matches?
  | 
Relaxed stuff should only work if "c" is "Optional".
If both are "Required" then here would be no match:

  | <bean name="bean1" class="SomeBean">
  |    <!-- type='Supplied' by default on bean level -->
  |    <qualifier>a</qualifier> 
  | </bean>
  | <bean name="bean2"class="SomeBean">
  |    </qualifier>b</qualifier>
  | </bean>
  | <bean name="bean3" class="OtherBean">
  |    <qualifier type="Wanted">a</qualifier>
  |    <qualifier type="Wanted">c</qualifier>
  | </bean>
  | 

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

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



More information about the jboss-dev-forums mailing list