I am using jersey-guice to set up all my Jersey 1 resources using a bunch of Guice (Servlet)Modules.
I have written a custom ViewProcessor
(CustomViewProcessor
) that relies on a configuration object, that I want to be injected into it using Guice. This CustomViewProcessor
should be picked up and used by Jersey every time it needs one.
How do I tell Jersey to fetch a Guice-created CustomViewProcessor
instance whenever it needs a ViewProcessor
? I want to set all this up within my Guice Module
s' configure
methods.