[jboss-dev-forums] [JBoss Microcontainer Development] - Re: Supporting qualifiers in MC
kabir.khan@jboss.com
do-not-reply at jboss.com
Thu Nov 26 06:20:50 EST 2009
"alesj" wrote : "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)
|
ok, I can make that configurable
"alesj" wrote :
| 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.
|
I like that idea
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267649#4267649
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267649
More information about the jboss-dev-forums
mailing list