Search in sources :

Example 6 with GuiceBuilder

use of com.peterphi.std.guice.apploader.impl.GuiceBuilder in project stdlib by petergeneric.

the class ResteasyDispatcher method init.

@Override
public void init(FilterConfig config) throws ServletException {
    GuiceBuilder builder = new GuiceBuilder().withRole(new WebappGuiceRole(config));
    this.registry = new GuiceRegistry(builder);
    dispatcher = new GuicedResteasy(registry, config, new FilterBootstrap(config), false);
    startInitialise();
}
Also used : WebappGuiceRole(com.peterphi.std.guice.web.rest.setup.WebappGuiceRole) FilterBootstrap(org.jboss.resteasy.plugins.server.servlet.FilterBootstrap) 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)6 GuiceRegistry (com.peterphi.std.guice.apploader.impl.GuiceRegistry)4 BasicSetup (com.peterphi.std.guice.apploader.BasicSetup)3 WebappGuiceRole (com.peterphi.std.guice.web.rest.setup.WebappGuiceRole)3 Injector (com.google.inject.Injector)2 Test (org.junit.Test)2 Module (com.google.inject.Module)1 GuiceProperties (com.peterphi.std.guice.apploader.GuiceProperties)1 GuiceRole (com.peterphi.std.guice.apploader.GuiceRole)1 ClassScannerFactory (com.peterphi.std.guice.common.ClassScannerFactory)1 Automock (com.peterphi.std.guice.testing.com.peterphi.std.guice.testing.annotations.Automock)1 TestConfig (com.peterphi.std.guice.testing.com.peterphi.std.guice.testing.annotations.TestConfig)1 TestModule (com.peterphi.std.guice.testing.com.peterphi.std.guice.testing.annotations.TestModule)1 HttpCallContext (com.peterphi.std.guice.web.HttpCallContext)1 PropertyFile (com.peterphi.std.io.PropertyFile)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Properties (java.util.Properties)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1