users@jersey.java.net

Adding _at_Provider via META-INF/services, injecting _at_Context Providers?

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Fri, 24 Apr 2009 16:03:14 -0700

Quick question: I am adding MessageBodyReader and -Writer providers
using META-INF/services instructions.
That works well, gets plugged in and all. So far so good.

But now I am trying to get Providers injected, so that I can look up
piece of configuration provider needs (with defaulting for cases where
no one explicitly gives it).
I was thinking that:

@Context
    protected Providers _providers;

with Provider would be found & injected, but it looks as if it wasn't.

Is this supposed to work? Or if not, what would be the right way to
get access to Providers?

-+ Tatu +-