Hello,
I want to use Guice integration from Jersey and Metro to inject both
JAX-RS resources and JAX-WS service impls. These two integrations
however use different approaches. Jersey has a easy-to-use
JerseyServletModule which is subclassed from ServletModule but Metro's
Guice integration uses an explicit annotation like this:
@GuiceManaged(module=WebServiceModule.class)
@WebService
public class MyWebServiceImpl implements MyWebService {
//....
}
In that case, can I do something like this?
public final class WebServiceModule extends ServletModule {
@Override
protected void configureServlets() {
}
}
public final class RESTModule extends JerseyServletModule {
@Override
protected void configureServlets() {
}
}
public final class GuiceBindings extends GuiceServletContextListener {
@Override
protected Injector getInjector() {
return Guice.createInjector(new WebServiceModule(), new
RESTModule());
}
}
The intent is to mix JAX-WS and JAX-RS in the same web-app.
Thanks,
doug
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.