Package | Description |
---|---|
ratpack.groovy |
Support for writing Ratpack applications in the Groovy programming language.
|
ratpack.groovy.launch | |
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.guice |
Integration with Google Guice.
|
ratpack.handling |
The handling of application requests.
|
ratpack.launch |
Classes used to bootstrap a Ratpack application.
|
ratpack.server |
Objects used to start a ratpack application.
|
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Closure<?> closure)
Builds a handler chain, with no backing registry.
|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
Modifier and Type | Method and Description |
---|---|
Handler |
GroovyClosureHandlerFactory.create(LaunchConfig launchConfig) |
Handler |
GroovyScriptFileHandlerFactory.create(LaunchConfig launchConfig) |
Modifier and Type | Method and Description |
---|---|
protected LaunchConfig |
ClosureBackedEmbeddedApplication.createLaunchConfig()
Constructs the launch config using the other
create* methods. |
Modifier and Type | Method and Description |
---|---|
protected GuiceBackedHandlerFactory |
ClosureBackedEmbeddedApplication.createHandlerFactory(LaunchConfig launchConfig)
Returns the factory to use to create the actual handler.
|
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 |
---|---|
LaunchConfig |
ModuleRegistry.getLaunchConfig()
The launch config for the application the module registry is for.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Guice.handler(LaunchConfig launchConfig,
Action<? super ModuleRegistry> moduleConfigurer,
Action<? super Chain> chainConfigurer)
Creates a handler that can be used as the entry point for a Guice backed Ratpack app.
|
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,
Action<? super Chain> chainConfigurer)
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.
|
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 |
---|---|
LaunchConfig |
Chain.getLaunchConfig()
The launch config of the application that this chain is being created for.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Action<? super Chain> action)
Builds a handler chain, with no backing registry.
|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
Modifier and Type | Method and Description |
---|---|
LaunchConfig |
LaunchConfigBuilder.build(HandlerFactory handlerFactory)
Builds the launch config, based on the current state and the handler factory.
|
static LaunchConfig |
LaunchConfigFactory.createFromFile(ClassLoader classLoader,
Path baseDir,
Path configFile,
Properties overrideProperties,
Properties defaultProperties)
Delegates to
LaunchConfigFactory.createWithBaseDir(ClassLoader, java.nio.file.Path, java.util.Properties) , after merging the properties from configFile and overrideProperties . |
static LaunchConfig |
LaunchConfigFactory.createFromGlobalProperties(ClassLoader classLoader,
Properties globalProperties,
Properties defaultProperties)
Delegates to
LaunchConfigFactory.createFromGlobalProperties(ClassLoader, String, java.util.Properties, java.util.Properties) , extracting the “propertyPrefix” from the “globalProperties”. |
static LaunchConfig |
LaunchConfigFactory.createFromGlobalProperties(ClassLoader classLoader,
String propertyPrefix,
Properties globalProperties,
Properties defaultProperties)
Delegates to
LaunchConfigFactory.createFromProperties(ClassLoader, java.util.Properties, java.util.Properties) after extracting the “prefixed” properties from the global properties. |
static LaunchConfig |
LaunchConfigFactory.createFromProperties(ClassLoader classLoader,
Properties overrideProperties,
Properties defaultProperties)
Delegates to
LaunchConfigFactory.createFromFile(ClassLoader, java.nio.file.Path, java.nio.file.Path, java.util.Properties, java.util.Properties) , after trying to find the config properties file. |
static LaunchConfig |
LaunchConfigFactory.createWithBaseDir(ClassLoader classLoader,
Path baseDir,
Properties properties)
Constructs a launch config, based on the given properties.
|
Modifier and Type | Method and Description |
---|---|
Handler |
HandlerFactory.create(LaunchConfig launchConfig)
Creates a handler from the given launch config.
|
Modifier and Type | Method and Description |
---|---|
LaunchConfig |
RatpackServer.getLaunchConfig()
The (read only) configuration that was used to launch this server.
|
Modifier and Type | Method and Description |
---|---|
static RatpackServer |
RatpackServerBuilder.build(LaunchConfig launchConfig)
Constructs a new server based on the builder's state.
|
Modifier and Type | Method and Description |
---|---|
protected abstract LaunchConfig |
LaunchConfigEmbeddedApplication.createLaunchConfig()
Creates a launch config that defines the application.
|