javaee-spec icon indicating copy to clipboard operation
javaee-spec copied to clipboard

Enhancing @Stateless, @Stateful and @Singleton annotations with ElementType.ANNOTATION_TYPE

Open glassfishrobot opened this issue 14 years ago • 5 comments

currently the @Stateless, @Stateful annotations look like:

@Target(value =

{ElementType.TYPE}

) @Retention(value = RetentionPolicy.RUNTIME) public @interface Stateless {}

I would like to extend the @Target of all @Stateless, @Stateful, @Singleton beans to:

@Target(value =

{ElementType.TYPE,ElementType.ANNOTATION_TYPE}

)

(add ElementType.ANNOTATION_TYPE)

This would allow to use EJB meta-annotations in CDI @Stereotype definition

glassfishrobot avatar Jun 18 '11 00:06 glassfishrobot

Reported by abien

glassfishrobot avatar Jun 18 '11 00:06 glassfishrobot

mvatkina said: This is being discussed in the Java EE platform EG: http://java.net/projects/javaee-spec/lists/jsr342-experts/archive/2012-08/message/20

glassfishrobot avatar Aug 30 '12 22:08 glassfishrobot

mvatkina said: Reopening to move to java-ee project

glassfishrobot avatar Oct 27 '12 03:10 glassfishrobot

ldemichiel said: As discussed in the expert group, we would like to address the topic of expanded "stereotype"/"metatype" support in Java EE 8.

glassfishrobot avatar Jan 24 '13 20:01 glassfishrobot

This issue was imported from java.net JIRA JAVAEE_SPEC-12

glassfishrobot avatar Apr 25 '17 09:04 glassfishrobot