[cdi-dev] Bean defining annotations

Jozef Hartinger jharting at redhat.com
Wed Mar 12 05:08:56 EDT 2014


Hi all,

the CDI spec change, which adds @Interceptor, @Decorator and stereotypes 
to the set of bean defining annotations, was merged. This made me think 
whether this approach where we add annotations based on demand is the 
right one. Instead, I think we should review all the annotations defined 
in the CDI API and evaluate if it makes to have them as bean defining 
annotations. I think that this would yield more consistent and less 
ad-hoc result.

Two candidates that come to mind are @Alternative and @Specializes.

WDYT?

Jozef


More information about the cdi-dev mailing list