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
GroovyBindingsSpec 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=GroovyBindingsSpec.class,strategy=1) Closure<?> configurer)
GroovyBindingsSpec
that will back the application.configurer
- The configuration closure, delegating to GroovyBindingsSpec
void handlers(@DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> configurer)
configurer
- The configuration closure, delegating to GroovyChain
void serverConfig(@DelegatesTo(value=ServerConfig.Builder.class,strategy=1) Closure<?> configurer)
configurer
- The configuration closure, delegating to ServerConfig.Builder