public Modules setupApplicationScope(Container applicationScope) { applicationScope.addInstance(Modules.class, this); applicationScope.addActivator( ModuleDefinitions.class, applicationScope.getActivator(Modules.class)); selfRegister(applicationScope); return this; }
public Server start(ServerConfiguration configuration) { container.addInstance(ServerConfiguration.class, configuration); container.addInstance(BasePath.class, configuration.basePath()); container.addActivator(Server.class, ServerActivator.class); return container.get(Server.class); }