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
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com