jsr345-experts@ejb-spec.java.net

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

From: Adam Bien <abien_at_adam-bien.com>
Date: Fri, 17 Jun 2011 15:15:29 +0200

I would require EJB 3.2 containers to understand @Stereotypes or at least react to @Stateless, @Stateful etc. inside a @Stereotype.
On 17.06.2011, at 11:48, Pete Muir wrote:

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