[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Supporting qualifiers in MC
alesj
do-not-reply at jboss.com
Thu Nov 26 04:45:49 EST 2009
"kabir.khan at jboss.com" wrote :
| I've done this. This differs from the bean-level qualifiers in that if a qualifier exists on an injection point, then the bean-level qualifiers are ignored, so the property level ones completely override the bean level ones e.g.
|
I would actually go the other way - I wouldn't ignore higher level qualifiers by default.
e.g. @Inject(ignoreOtherQualifiers=true)
An idea, perhaps we could even add an injection-point type to a qualifier.
e.g. <qualifier type="default" injection-point="ctor, property">
Which would mean this qualifier is only used for ctors and properties, but not methods and fields.
btw: I don't like type="default" as it doesn't say/explain anything
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267633#4267633
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267633
More information about the jboss-dev-forums
mailing list