Re: JSR311: _at_Singleton

From: Bill Burke <>
Date: Mon, 09 Jun 2008 12:47:29 -0400

Marc Hadley wrote:
> On Jun 6, 2008, at 3:46 PM, Bill Burke wrote:
>> I noticed jersey has an @Singleton annotation. Can we just add this
>> to the spec? Its something I want in my implementation as well.
> Seems to me that component lifecycle annotations really belong elsewhere
> and if we add them in this JSR then we'd be getting into the IoC
> framework space.

Yeah, you're right. Kinda contradicts my arguments against
ContextResolver too.

Can we get some support for singletons in ApplicationConfig then?

List<Object> getResourceInstances();
List<Object> getProviderInstances();

I've already run into the need of having portable singletons.


Bill Burke
JBoss, a division of Red Hat