-
Clarification
-
Resolution: Obsolete
-
Major
-
1.1.PRD
-
None
-
None
In CDI 1.1 a bean which has @Alternative stereotype applied may be selected using the bean class. If both a stereotype and a bean class is used to select/deselect an alternative bean, conflicts may occur (in the cotext of CDI-18). E.g.:
@Stereotype @Alternative @Target({ TYPE, METHOD, FIELD }) @Retention(RUNTIME) public @interface Mock { } @Mock class Foo { } <beans> <alternatives> <class priority="1000">org.mycompany.Foo</class> <stereotype priority="100">org.mycompany.Mock</stereotype> </alternatives> </beans>