Package | Description |
---|---|
ratpack.groovy |
Support for writing Ratpack applications in the Groovy programming language.
|
ratpack.groovy.guice |
Groovy specific extensions to the Guice support.
|
ratpack.groovy.handling |
Groovy specific extensions to classes in the
ratpack.handling package. |
ratpack.guice |
Integration with Google Guice.
|
ratpack.handling |
The handling of application requests.
|
ratpack.registry |
Registries hold objects that can be retrieved via type, and are a key aspect of Ratpack applications.
|
ratpack.remote |
Integration with Groovy Remote Control.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Groovy.chain(LaunchConfig launchConfig,
Registry registry,
Closure<?> closure)
Builds a chain, backed by the given registry.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyModuleRegistry
Groovy specific extensions to
ModuleRegistry . |
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyContext
Subclass of
Context that adds Groovy friendly variants of methods. |
Modifier and Type | Interface and Description |
---|---|
interface |
ModuleRegistry
A container of modules, used for specifying which modules to back an application with.
|
Modifier and Type | Method and Description |
---|---|
static Registry |
Guice.justInTimeRegistry(Injector injector)
|
static Registry |
Guice.registry(Injector injector)
|
Modifier and Type | Interface and Description |
---|---|
interface |
Context
The context of an individual
Handler invocation. |
interface |
MinimalContext
A context that does not provide access to the
Response or flow control methods. |
Modifier and Type | Method and Description |
---|---|
Registry |
Chain.getRegistry()
The registry that backs this.
|
Modifier and Type | Method and Description |
---|---|
static Handler |
Handlers.chain(LaunchConfig launchConfig,
Registry registry,
Action<? super Chain> action)
Builds a chain, backed by the given registry.
|
void |
Context.insert(Registry registry,
Handler... handlers)
Inserts some handlers into the pipeline to execute with the given registry, then delegates to the first.
|
void |
Context.next(Registry registry)
Invokes the next handler, after adding the given registry.
|
Modifier and Type | Interface and Description |
---|---|
interface |
MutableRegistry<T>
A
Registry that is also mutable. |
Modifier and Type | Method and Description |
---|---|
Registry |
RegistryBuilder.build()
Builds the registry.
|
Registry |
RegistryBuilder.build(Registry parent)
Builds a registry containing the entries specified by this builder and the given “parent” registry.
|
static Registry |
Registries.join(Registry parent,
Registry child)
Joins the given registries into a new registry.
|
static <T> Registry |
Registries.registry(Class<? super T> publicType,
T implementation)
Creates a single entry registry, using
RegistryBuilder.add(Class, Object) . |
static <T> Registry |
Registries.registry(Class<T> publicType,
Factory<? extends T> factory)
Creates a single lazily created entry registry, using
RegistryBuilder.add(Class, Factory) . |
static Registry |
Registries.registry(Object object)
Creates a single entry registry, using
RegistryBuilder.add(Object) . |
Modifier and Type | Method and Description |
---|---|
Registry |
RegistryBuilder.build(Registry parent)
Builds a registry containing the entries specified by this builder and the given “parent” registry.
|
static Registry |
Registries.join(Registry parent,
Registry child)
Joins the given registries into a new registry.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CommandDelegate
The delegate object for commands
|