I found out that this is rather easy: Just create that CustomViewProcessor
class and annotate it with @Provider
. By bind
ing it with Guice (and having jersey-guice installed), your CustomViewProcessor
will be instantiated and used in the right places.
The CustomViewProcessor
class can use all the @Inject
ed fields that you wish, like configuration objects.