Using Jersey 2.0, how do you register a bindable instance per request?
...if the instance needs to be constructed manually, perhaps by a 3rd party factory class? Previously, (Jersey 1.x), you would do something like this: public class MyInjectableProvider extends PerRequestTypeInjectableProvider<Context, MyInjectable> { public MyInjectableProvider() { super(MyInjectable.class); } @Override public Injectable<MyInjectable> getInjectable(ComponentContext ic, Context context) { MyInjectable myInjectableInstance = //... return new Injectable<MyInjectable>() { @Override public MyInjectable getValue() { return myInjectableInstance; } }; } } The anonymous local class is