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)
Adds the bindings from the given module.
|
<C,T extends ConfigurableModule<C>> |
GroovyBindingsSpec.add(Class<T> moduleClass,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> GroovyBindingsSpec |
GroovyBindingsSpec.add(ConfigurableModule<C> module,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
GroovyBindingsSpec |
GroovyBindingsSpec.add(Module module)
Adds the bindings from the given module.
|
<C,T extends ConfigurableModule<C>> |
GroovyBindingsSpec.addConfig(Class<T> moduleClass,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> GroovyBindingsSpec |
GroovyBindingsSpec.addConfig(ConfigurableModule<C> module,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
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> 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.
|