public static interface GroovyEmbeddedApp.Spec
Modifier and Type | Method and Description |
---|---|
default GroovyEmbeddedApp.Spec |
baseDir(BaseDirBuilder baseDirBuilder) |
default GroovyEmbeddedApp.Spec |
baseDir(Path baseDir) |
GroovyEmbeddedApp.Spec |
baseDir(Supplier<? extends Path> baseDirSupplier) |
GroovyEmbeddedApp.Spec |
bindings(Closure<?> closure)
Specifies the bindings of the application.
|
GroovyEmbeddedApp.Spec |
handlers(Closure<?> closure)
Specifies the handlers of the application.
|
GroovyEmbeddedApp.Spec |
parentInjector(Injector parentInjector) |
GroovyEmbeddedApp.Spec |
serverConfig(Closure<?> closure)
Modifies the server config of the application.
|
GroovyEmbeddedApp.Spec handlers(@DelegatesTo(value=GroovyChain.class,strategy=1) Closure<?> closure)
The given closure will not be executed until this application is started.
Subsequent calls to this method will replace the previous definition. Calling this method after the application has started has no effect.
closure
- The definition of the application handlersthis
GroovyEmbeddedApp.Spec bindings(@DelegatesTo(value=BindingsSpec.class,strategy=1) Closure<?> closure)
The given closure will not be executed until this application is started.
Subsequent calls to this method will replace the previous definition. Calling this method after the application has started has no effect.
closure
- The definition of the application handlersthis
GroovyEmbeddedApp.Spec serverConfig(@DelegatesTo(value=ServerConfig.Builder.class,strategy=1) Closure<?> closure)
The given closure will not be executed until this application is started.
Subsequent calls to this method will replace the previous definition. Calling this method after the application has started has no effect.
closure
- The definition of the application handlersthis
GroovyEmbeddedApp.Spec parentInjector(Injector parentInjector)
GroovyEmbeddedApp.Spec baseDir(Supplier<? extends Path> baseDirSupplier)
default GroovyEmbeddedApp.Spec baseDir(BaseDirBuilder baseDirBuilder)
default GroovyEmbeddedApp.Spec baseDir(Path baseDir)