Hello
Sorry for late response. To be honest - this will look differently in Pax Web 8, because I'm rewriting the configuration aspects of Pax Web.
Handlers are Jetty specific and I'm afraid that for now you have to dig in the code yourself (I've never used this mechanism of OSGi-registration of Jetty handlers/handlerWrappers).
And you're right - for now if you need a handler *wrapper* you need an instance of the handler being wrapped - the existing org.ops4j.pax.web.itest.jetty.JettyHandlerServiceIntegrationTest test simply ADDS different handler that's invoked AFTER (not AROUND) existing Pax Web provided one...
Indeed - I'll remember that ability to install real wrappers (same for Tomcat valves and Undertow handlers) would be great-to-have in Pax Web 8.
regards
Grzegorz Grzybek