Hello Sam,
can you please share some more details about your usecase? You should
create Injection providers with your dependencies and let Jersey inject
them when resource instances are created .. because otherwise there is
no guarantee that it will work as you expected (resource instances are
created per request by default, so you would have to do this before
every request).
See
http://jersey.java.net/nonav/apidocs/1.13/jersey/com/sun/jersey/spi/inject/SingletonTypeInjectableProvider.html
for more details.
Regards,
Pavel
On 8/9/12 12:18 AM, Sam (Stephen Samuel) wrote:
> Hi all.
>
> I'm using Jersey Test and I want to get access to the endpoint
> instances that are created, so I can set some dependencies on them. Is
> this possible ?
>