Package | Description |
---|---|
ratpack.groovy.guice |
Groovy specific extensions to the Guice support.
|
Modifier and Type | Method and Description |
---|---|
GroovyBindingsSpec |
GroovyBindingsSpec.add(Class<? extends Module> moduleClass) |
<C,T extends ConfigurableModule<C>> |
GroovyBindingsSpec.add(Class<T> moduleClass,
Action<? super C> configuration) |
GroovyBindingsSpec |
GroovyBindingsSpec.add(Module module)
Adds the bindings from the given modules.
|
GroovyBindingsSpec |
GroovyBindingsSpec.bind(Class<?> type)
Add a binding for the given type.
|
<T> GroovyBindingsSpec |
GroovyBindingsSpec.bind(Class<T> publicType,
Class<? extends T> implType)
Add a binding for the given public type, to the given implementation type.
|
GroovyBindingsSpec |
GroovyBindingsSpec.binder(Action<? super Binder> action)
Adds bindings by directly configuring a
Binder . |
<T> GroovyBindingsSpec |
GroovyBindingsSpec.bindInstance(Class<? super T> publicType,
T instance)
Add a binding for the given public type, to the given implementing instance.
|
<T> GroovyBindingsSpec |
GroovyBindingsSpec.bindInstance(T instance)
Add a binding for the given object to its concrete type.
|
<T extends Module> |
GroovyBindingsSpec.config(Class<T> moduleClass,
Consumer<? super T> configurer)
Retrieves the module that has been added with the given type for configuration.
|
GroovyBindingsSpec |
GroovyBindingsSpec.init(Action<? super Injector> action)
Registers an action to operate on the injector when it has been finalized.
|
GroovyBindingsSpec |
GroovyBindingsSpec.init(Class<? extends Runnable> clazz)
Registers a runnable to instantiated via dependency injection when the injector is created from this module registry.
|
GroovyBindingsSpec |
GroovyBindingsSpec.init(Closure<?> closure)
Adds a closure based application initializer.
|
<T> GroovyBindingsSpec |
GroovyBindingsSpec.provider(Class<T> publicType,
Provider<? extends T> provider)
Add a binding for the given public type, to the given provider.
|
<T> GroovyBindingsSpec |
GroovyBindingsSpec.providerType(Class<T> publicType,
Class<? extends Provider<? extends T>> providerType)
Add a binding for the given public type, to the given provider type.
|