users@jersey.java.net

PROPERTY_DEFAULT_RESOURCE_COMPONENT_PROVIDER_FACTORY_CLASS

From: Craig McClanahan <Craig.McClanahan_at_Sun.COM>
Date: Wed, 12 Aug 2009 14:47:04 -0700

As part of an experiment, I am trying to integrate Jersey and Guice, but
in a standalone Java SE application using Grizzly, rather than in a
webapp. The question becomes, how does one tell Jersey about the
GuiceComponentProviderFactory class from jersey-guice? The
documentation on this ResourceConfig property is that the value must be
a Java *class* that implements IoCComponentProviderFactory ... but what
I need to pass is an *instance* of this class (there is no no-args
constructor ... you have to pass in the ResourceConfig and the Guice
injector).

How do I get this thing configured in a Java SE standalone scenario?

Craig