Closed nasis closed 7 years ago
I read carefully the the Guice-Jersey code @asafalima wrote, and started thinking what is the best way of adding servlets through it without losing its functionality. I have some suggestions on doing that, and some things we should improve. Better discuss this via online whiteboard session.
ServletModule
class which offers a good DSL for doing that via sub-classing ServletModule
. As the documentation states, you can simply add another module, which extends ServletModule, add servlets to it via its DSL, and it will be picked up (through the GuiceFilter
).Resource
annotation. ResourceConfig
Another though as crossed my mind, throwing it out in the open to brain storm it: ServletModule managed to allow you to register Servlet and Filter via Guice without being tightly coupled to an specific server implementation. Can we do the same with JAX-RS?
Will not be merged. Was implemented in gaia-full as ServletModule.
Talked to Mesika and this addition was accepted with positive nod :-) Let's move forward