public static interface Groovy.Ratpack
Groovy.ratpack(groovy.lang.Closure)
Modifier and Type | Method and Description |
---|---|
void |
bindings(Closure<?> configurer)
Registers the closure used to configure the
BindingsSpec that will back the application. |
void |
handlers(Closure<?> configurer)
Registers the closure used to build the handler chain of the application.
|
void |
serverConfig(Closure<?> configurer)
Registers the closure used to build the configuration of the server.
|
void bindings(@DelegatesTo(value=BindingsSpec.class,strategy=1) Closure<?> configurer)
BindingsSpec
that will back the application.configurer
- The configuration closure, delegating to BindingsSpec
void handlers(@DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> configurer)
configurer
- The configuration closure, delegating to GroovyChain
void serverConfig(@DelegatesTo(value=ServerConfigBuilder.class,strategy=1) Closure<?> configurer)
configurer
- The configuration closure, delegating to ServerConfigBuilder