jsr345-experts@ejb-spec.java.net

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

From: Reza Rahman <reza_rahman_at_lycos.com>
Date: Thu, 16 Jun 2011 12:06:50 -0400

Adam,

I think this is an excellent idea.

Cheers,
Reza


On 6/16/2011 4:22 AM, 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,
>
> and thoughts?,
>
> adam
>
>
>
>
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1382 / Virus Database: 1513/3707 - Release Date: 06/16/11
>
>
>