public abstract class GuiceBuilder<Self,Delegate extends play.api.inject.guice.GuiceBuilder<Delegate>>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
GuiceBuilder(Delegate delegate) |
Modifier and Type | Method and Description |
---|---|
com.google.inject.Module |
applicationModule()
Create a Guice module that can be used to inject an Application.
|
Self |
bindings(play.api.inject.Binding<?>... bindings)
Add Play bindings.
|
Self |
bindings(play.api.inject.guice.GuiceableModule... modules)
Add bindings from guiceable modules.
|
Self |
bindings(com.google.inject.Module... modules)
Add bindings from Guice modules.
|
Self |
bindings(play.api.inject.Module... modules)
Add bindings from Play modules.
|
Self |
configure(Configuration conf)
Add additional configuration.
|
Self |
configure(java.util.Map<java.lang.String,java.lang.Object> conf)
Add additional configuration.
|
Self |
configure(java.lang.String key,
java.lang.Object value)
Add additional configuration.
|
Self |
disable(java.lang.Class<?>... moduleClasses)
Disable modules by class.
|
Self |
in(java.lang.ClassLoader classLoader)
Set the environment class loader.
|
Self |
in(Environment env)
Set the environment.
|
Self |
in(java.io.File path)
Set the environment path.
|
Self |
in(Mode mode)
Set the environment mode.
|
Injector |
injector()
Create a Play Injector backed by Guice using this configured builder.
|
protected abstract Self |
newBuilder(Delegate delegate) |
Self |
overrides(play.api.inject.Binding<?>... bindings)
Override bindings using Play bindings.
|
Self |
overrides(play.api.inject.guice.GuiceableModule... modules)
Override bindings using guiceable modules.
|
Self |
overrides(com.google.inject.Module... modules)
Override bindings using Guice modules.
|
Self |
overrides(play.api.inject.Module... modules)
Override bindings using Play modules.
|
protected GuiceBuilder(Delegate delegate)
public final Self in(Environment env)
public final Self in(java.io.File path)
public final Self in(java.lang.ClassLoader classLoader)
public final Self configure(Configuration conf)
public final Self configure(java.util.Map<java.lang.String,java.lang.Object> conf)
public final Self configure(java.lang.String key, java.lang.Object value)
public final Self bindings(play.api.inject.guice.GuiceableModule... modules)
public final Self bindings(com.google.inject.Module... modules)
public final Self bindings(play.api.inject.Module... modules)
public final Self bindings(play.api.inject.Binding<?>... bindings)
public final Self overrides(play.api.inject.guice.GuiceableModule... modules)
public final Self overrides(com.google.inject.Module... modules)
public final Self overrides(play.api.inject.Module... modules)
public final Self overrides(play.api.inject.Binding<?>... bindings)
public final Self disable(java.lang.Class<?>... moduleClasses)
public com.google.inject.Module applicationModule()
public Injector injector()