Search in sources :

Example 1 with ServicesGraph

use of ratpack.service.internal.ServicesGraph 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);
}
Also used : DefaultEvent(ratpack.service.internal.DefaultEvent) ChunkedWriteHandler(io.netty.handler.stream.ChunkedWriteHandler) SslHandler(io.netty.handler.ssl.SslHandler) Handler(ratpack.handling.Handler) ServicesGraph(ratpack.service.internal.ServicesGraph)

Aggregations

SslHandler (io.netty.handler.ssl.SslHandler)1 ChunkedWriteHandler (io.netty.handler.stream.ChunkedWriteHandler)1 Handler (ratpack.handling.Handler)1 DefaultEvent (ratpack.service.internal.DefaultEvent)1 ServicesGraph (ratpack.service.internal.ServicesGraph)1