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

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Nov 30 06:35:16 EST 2009


"alesj" wrote : "kabir.khan at jboss.com" wrote : 
  |   | I don't know if the qualifiers for the injection points should be read from the MDR or not? At first glance doing that does not make sense since the component metadata lives below instance level, but I might be wrong.
  |   | 
  | Don't forget property qualifiers via annotations (as we already support them).
  | btw: a fix is needed there, since afair we currently don't support just property element w/o value specified,
  | which is what you will need in order to override/add instance level annotations/qualifiers

This looks fine at xml level:
https://svn.jboss.org/repos/jbossas/projects/kernel/trunk/kernel/src/test/resources/org/jboss/test/kernel/deployment/xml/test/PropertyWithAnnotation.xml

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <bean xmlns="urn:jboss:bean-deployer:2.0" class="Dummy">
  |    <property name="PropertyName">
  |       <annotation>@org.jboss.test.kernel.deployment.xml.support.Annotation1</annotation>
  |    </property>
  | </bean>
  | 
although I need to check if this works at runtime, e.g. in combination with @Inject

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

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



More information about the jboss-dev-forums mailing list