Package | Description |
---|---|
ratpack.guice |
Integration with Google Guice.
|
ratpack.spring.config |
Modifier and Type | Method and Description |
---|---|
default BindingsSpec |
BindingsSpec.bind(java.lang.Class<?> type)
Add a binding for the given type.
|
default <T> BindingsSpec |
BindingsSpec.bind(java.lang.Class<T> publicType,
java.lang.Class<? extends T> implType)
Add a binding for the given public type, to the given implementation type.
|
default <T> BindingsSpec |
BindingsSpec.bind(TypeLiteral<T> publicType,
java.lang.Class<? extends T> implType) |
default <T> BindingsSpec |
BindingsSpec.bind(com.google.common.reflect.TypeToken<T> publicType,
java.lang.Class<? extends T> implType) |
BindingsSpec |
BindingsSpec.binder(Action<? super Binder> action)
Adds bindings by directly configuring a
Binder . |
default <T> BindingsSpec |
BindingsSpec.bindInstance(java.lang.Class<? super T> publicType,
T instance) |
default <T> BindingsSpec |
BindingsSpec.bindInstance(T instance)
Add a binding for the given object to its concrete type.
|
default <T> BindingsSpec |
BindingsSpec.bindInstance(TypeLiteral<? super T> publicType,
T instance)
Add a binding for the given public type, to the given implementing instance.
|
default <T> BindingsSpec |
BindingsSpec.bindInstance(com.google.common.reflect.TypeToken<? super T> publicType,
T instance) |
BindingsSpec |
BindingsSpec.module(java.lang.Class<? extends Module> moduleClass)
Adds the bindings from the given module.
|
<C,T extends ConfigurableModule<C>> |
BindingsSpec.module(java.lang.Class<T> moduleClass,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> BindingsSpec |
BindingsSpec.module(ConfigurableModule<C> module,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
BindingsSpec |
BindingsSpec.module(Module module)
Adds the bindings from the given module.
|
default <C,T extends ConfigurableModule<C>> |
BindingsSpec.moduleConfig(java.lang.Class<T> moduleClass,
C config) |
<C,T extends ConfigurableModule<C>> |
BindingsSpec.moduleConfig(java.lang.Class<T> moduleClass,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
<C> BindingsSpec |
BindingsSpec.moduleConfig(ConfigurableModule<C> module,
C config,
Action<? super C> configurer)
Adds the bindings from the given configurable module.
|
default <C,T extends ConfigurableModule<C>> |
BindingsSpec.moduleConfig(T moduleClass,
C config) |
default <T> BindingsSpec |
BindingsSpec.multiBind(java.lang.Class<T> type) |
default <T> BindingsSpec |
BindingsSpec.multiBind(java.lang.Class<T> publicType,
java.lang.Class<? extends T> implType) |
default <T> BindingsSpec |
BindingsSpec.multiBind(TypeLiteral<T> publicType,
java.lang.Class<? extends T> implType) |
default <T> BindingsSpec |
BindingsSpec.multiBind(com.google.common.reflect.TypeToken<T> publicType,
java.lang.Class<? extends T> implType) |
default <T> BindingsSpec |
BindingsSpec.multiBinder(java.lang.Class<T> type,
Action<? super Multibinder<T>> action) |
default <T> BindingsSpec |
BindingsSpec.multiBinder(TypeLiteral<T> type,
Action<? super Multibinder<T>> action) |
default <T> BindingsSpec |
BindingsSpec.multiBinder(com.google.common.reflect.TypeToken<T> type,
Action<? super Multibinder<T>> action) |
default <T> BindingsSpec |
BindingsSpec.multiBindInstance(java.lang.Class<T> publicType,
T instance) |
default <T> BindingsSpec |
BindingsSpec.multiBindInstance(T instance) |
default <T> BindingsSpec |
BindingsSpec.multiBindInstance(TypeLiteral<T> publicType,
T instance) |
default <T> BindingsSpec |
BindingsSpec.multiBindInstance(com.google.common.reflect.TypeToken<T> publicType,
T instance) |
default <T> BindingsSpec |
BindingsSpec.multiBindProvider(java.lang.Class<T> publicType,
Provider<? extends T> provider) |
default <T> BindingsSpec |
BindingsSpec.multiBindProvider(TypeLiteral<T> publicType,
Provider<? extends T> provider) |
default <T> BindingsSpec |
BindingsSpec.multiBindProvider(com.google.common.reflect.TypeToken<T> publicType,
Provider<? extends T> provider) |
default <T> BindingsSpec |
BindingsSpec.multiBindProviderType(java.lang.Class<T> publicType,
java.lang.Class<? extends Provider<? extends T>> providerType) |
default <T> BindingsSpec |
BindingsSpec.provider(java.lang.Class<T> publicType,
Provider<? extends T> provider) |
default <T> BindingsSpec |
BindingsSpec.provider(TypeLiteral<T> publicType,
Provider<? extends T> provider)
Add a binding for the given public type, to the given provider.
|
default <T> BindingsSpec |
BindingsSpec.provider(com.google.common.reflect.TypeToken<T> publicType,
Provider<? extends T> provider) |
default <T> BindingsSpec |
BindingsSpec.providerType(java.lang.Class<T> publicType,
java.lang.Class<? extends Provider<? extends T>> providerType) |
default <T> BindingsSpec |
BindingsSpec.providerType(TypeLiteral<T> publicType,
java.lang.Class<? extends Provider<? extends T>> providerType)
Add a binding for the given public type, to the given provider type.
|
default <T> BindingsSpec |
BindingsSpec.providerType(com.google.common.reflect.TypeToken<T> publicType,
java.lang.Class<? extends Provider<? extends T>> providerType) |
Modifier and Type | Method and Description |
---|---|
Action<? super BindingsSpec> |
BindingsImposition.getBindings()
The bindings to add/override.
|
Modifier and Type | Method and Description |
---|---|
static BindingsImposition |
BindingsImposition.of(Action<? super BindingsSpec> bindings)
Creates a new bindings imposition of the given bindings.
|
static Function<Registry,Registry> |
Guice.registry(Action<? super BindingsSpec> bindings) |
static Function<Registry,Registry> |
Guice.registry(Injector parentInjector,
Action<? super BindingsSpec> bindings) |
Modifier and Type | Method and Description |
---|---|
Action<BindingsSpec> |
RatpackServerCustomizerAdapter.getBindings() |
Action<BindingsSpec> |
RatpackServerCustomizer.getBindings() |