Dunno.
Guess, the question would have been relevant before Singleton components
introduction.
But now they have been created, I'm not really for such a breaking decision.
Maybe I missed something, then apologize.
Jean-Louis
2013/1/12 Philippe Marschall <kustos_at_gmx.net>
>
>
> On 03.01.2013 17:27, Jeremy Bauer wrote:
>
>> I also do not like the idea of re-using @Singleton because it is a
>> component defining annotation. If we are just talking about a single
>> switch, adding an attribute to the annotation ex.
>> @MessageDriven(singleton=true) is my preference.
>>
>
> What adding singleton=true to Stateless and turning Singleton into a
> stereotype?
>
> @Stereotype
> @Stateless(singleton=true)
> public @interface Singleton {
> }
>
> Cheers
> Philippe
>
>
--
Jean-Louis