jsr345-experts@ejb-spec.java.net

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

From: Pete Muir <pmuir_at_bleepbleep.org.uk>
Date: Fri, 17 Jun 2011 10:48:54 +0100

On 16 Jun 2011, at 09:22, Adam Bien wrote:

> 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,

I'm not sure what use this is, without also requiring EJB containers to also look on stereotypes?