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 |
launchConfig(Closure<?> closure)
Modifies the launch config of the application.
|
GroovyEmbeddedApp.Spec |
parentInjector(Injector parentInjector) |
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=GroovyBindingsSpec.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 launchConfig(@DelegatesTo(value=LaunchConfigBuilder.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)