Package | Description |
---|---|
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.guice |
Integration with Google Guice.
|
ratpack.websocket |
Support for Websockets.
|
Modifier and Type | Method and Description |
---|---|
protected Transformer<? super Injector,? extends Handler> |
ClosureBackedEmbeddedApplication.createHandlerTransformer(LaunchConfig launchConfig)
Provides the object that, given the
Injector created by the module definition, creates the application handler. |
protected Transformer<? super Module,? extends Injector> |
ClosureBackedEmbeddedApplication.createInjectorFactory(LaunchConfig launchConfig)
Creates a module to injector transformer based on the given launch config.
|
Modifier and Type | Method and Description |
---|---|
static Transformer<Module,Injector> |
Guice.childInjectorFactory(Injector parent)
Creates a transformer that can build an injector from a module, as a child of the given parent.
|
static Transformer<Module,Injector> |
Guice.newInjectorFactory(LaunchConfig launchConfig)
Creates a transformer that can build an injector from a module.
|
Modifier and Type | Method and Description |
---|---|
Handler |
GuiceBackedHandlerFactory.create(Action<? super ModuleRegistry> modulesAction,
Transformer<? super Module,? extends Injector> moduleTransformer,
Transformer<? super Injector,? extends Handler> handler) |
Handler |
GuiceBackedHandlerFactory.create(Action<? super ModuleRegistry> modulesAction,
Transformer<? super Module,? extends Injector> moduleTransformer,
Transformer<? super Injector,? extends Handler> handler) |
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Injector parentInjector,
Action<? super ModuleRegistry> moduleConfigurer,
Transformer<? super Injector,? extends Handler> injectorTransformer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
Modifier and Type | Method and Description |
---|---|
static <T> WebSocketBuilder<T> |
WebSockets.websocket(Context context,
Transformer<WebSocket,T> openAction) |