use of ratpack.service.internal.DefaultEvent in project ratpack by ratpack.
the class DefaultRatpackServer method buildAdapter.
protected NettyHandlerAdapter buildAdapter(DefinitionBuild definition) throws Exception {
LOGGER.info("Building registry...");
serverRegistry = buildServerRegistry(definition.getServerConfig(), definition.getUserRegistryFactory());
Handler ratpackHandler = buildRatpackHandler(serverRegistry, definition.getHandlerFactory());
ratpackHandler = decorateHandler(ratpackHandler, serverRegistry);
servicesGraph = new ServicesGraph(serverRegistry);
servicesGraph.start(new DefaultEvent(serverRegistry, reloading));
return new NettyHandlerAdapter(serverRegistry, ratpackHandler);
}
Aggregations