users@jersey.java.net

[Jersey] Re: What happened to SingletonTypeInjectableProvider?

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Thu, 31 Jan 2013 09:51:44 +0100

See CustomInjectablesResourceConfigTest ;
https://github.com/jersey/jersey/blob/master/tests/e2e/src/test/java/org/glassfish/jersey/tests/e2e/server/CustomInjectablesResourceConfigTest.java


On 1/31/13 9:47 AM, algermissen1971 wrote:
> On 31.01.2013, at 09:32, algermissen1971 <algermissen1971_at_mac.com> wrote:
>
>> Hi,
>>
>> I am looking for a way to inject my own Singletons using @Context. In Jersey 1.x there was SingletonTypeInjectableProvider. But it seems 2.x dropped that.
>>
>> Or is that in a package that is not covered by the Jersey 2 API Docs and I need to look elsewhere?
> Aha - I see you now use HK2. Then ... is there maybe an example describing how to write my own context providers based on Jersey's basics?
>
> Jan
>
>> Jan
>
>