jsr345-experts@ejb-spec.java.net

[jsr345-experts] Enhancing _at_Stateless, _at_Stateful and _at_Singleton annotations

From: Adam Bien <abien_at_adam-bien.com>
Date: Thu, 16 Jun 2011 10:22:11 +0200

Hi,

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,

and thoughts?,

adam