[cdi-dev] Is it required to explicitly add @Any for custom beans?
gunnar at hibernate.org
Tue Feb 4 03:54:10 EST 2014
I'm registering a custom Bean implementation using a portable extension.
Injection of this bean using the @Any qualifier fails unless I explicitly
add this qualifier in the getQualifiers() implementation of my bean.
Now the spec says in 2.3.1:
"Every bean has the built-in qualifier @Any, even if it does not
explicitly declare this qualifier [...]"
Based on that, I had expected that I'm not required to add this qualifier
to my custom bean implementation. Or am I misinterpreting the spec here?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cdi-dev