Search in sources :

Example 1 with ServletBootstrap

use of org.jboss.resteasy.plugins.server.servlet.ServletBootstrap in project stdlib by petergeneric.

the class ResteasyDispatcher method init.

@Override
public void init(ServletConfig config) throws ServletException {
    super.init(config);
    GuiceBuilder builder = new GuiceBuilder().withRole(new WebappGuiceRole(config));
    this.registry = new GuiceRegistry(builder);
    dispatcher = new GuicedResteasy(registry, config, new ServletBootstrap(config), true);
    startInitialise();
}
Also used : WebappGuiceRole(com.peterphi.std.guice.web.rest.setup.WebappGuiceRole) ServletBootstrap(org.jboss.resteasy.plugins.server.servlet.ServletBootstrap) GuiceBuilder(com.peterphi.std.guice.apploader.impl.GuiceBuilder) GuiceRegistry(com.peterphi.std.guice.apploader.impl.GuiceRegistry)

Aggregations

GuiceBuilder (com.peterphi.std.guice.apploader.impl.GuiceBuilder)1 GuiceRegistry (com.peterphi.std.guice.apploader.impl.GuiceRegistry)1 WebappGuiceRole (com.peterphi.std.guice.web.rest.setup.WebappGuiceRole)1 ServletBootstrap (org.jboss.resteasy.plugins.server.servlet.ServletBootstrap)1