Package | Description |
---|---|
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.guice |
Integration with Google Guice.
|
ratpack.stream | |
ratpack.test.exec | |
ratpack.websocket |
Support for Websockets.
|
Modifier and Type | Method and Description |
---|---|
protected Function<? 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 Function<? 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 Function<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 Function<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 BindingsSpec> modulesAction,
Function<? super Module,? extends Injector> moduleTransformer,
Function<? super Injector,? extends Handler> handler) |
Handler |
GuiceBackedHandlerFactory.create(Action<? super BindingsSpec> modulesAction,
Function<? super Module,? extends Injector> moduleTransformer,
Function<? super Injector,? extends Handler> handler) |
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super BindingsSpec> moduleConfigurer,
Function<? 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 BindingsSpec> moduleConfigurer,
Function<? 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 <I,O> org.reactivestreams.Publisher<O> |
Streams.map(org.reactivestreams.Publisher<I> input,
Function<? super I,? extends O> function)
Returns a publisher that publishes items from the given input publisher after transforming each item via the given function.
|
static <T> org.reactivestreams.Publisher<T> |
Streams.periodically(ScheduledExecutorService executorService,
long delay,
TimeUnit timeUnit,
Function<Integer,T> producer)
Executes the given function periodically, publishing the return value to the subscriber.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
ExecHarness.execute(Function<Execution,Promise<T>> func)
Synchronously returns a promised value.
|
Modifier and Type | Method and Description |
---|---|
static <T> WebSocketConnector<T> |
WebSockets.websocket(Context context,
Function<WebSocket,T> openAction) |