public final class GuiceApplicationBuilder extends GuiceBuilder<GuiceApplicationBuilder,play.api.inject.guice.GuiceApplicationBuilder>
delegate
Constructor and Description |
---|
GuiceApplicationBuilder() |
Modifier and Type | Method and Description |
---|---|
Application |
build()
Create a new Play Application using this configured builder.
|
static GuiceApplicationBuilder |
fromScalaBuilder(play.api.inject.guice.GuiceApplicationBuilder builder) |
GuiceApplicationBuilder |
global(GlobalSettings global)
Deprecated.
use dependency injection, since 2.5.0
|
GuiceApplicationBuilder |
load(java.util.function.BiFunction<Environment,Configuration,java.util.List<play.api.inject.guice.GuiceableModule>> loader)
Set the module loader.
|
GuiceApplicationBuilder |
load(play.api.inject.Binding<?>... bindings)
Override the module loader with the given Play bindings.
|
GuiceApplicationBuilder |
load(play.api.inject.guice.GuiceableModule... modules)
Override the module loader with the given guiceable modules.
|
GuiceApplicationBuilder |
load(com.google.inject.Module... modules)
Override the module loader with the given Guice modules.
|
GuiceApplicationBuilder |
load(play.api.inject.Module... modules)
Override the module loader with the given Play modules.
|
GuiceApplicationBuilder |
loadConfig(Configuration conf)
Set the initial configuration.
|
GuiceApplicationBuilder |
loadConfig(java.util.function.Function<Environment,Configuration> load)
Set the initial configuration loader.
|
protected GuiceApplicationBuilder |
newBuilder(play.api.inject.guice.GuiceApplicationBuilder builder)
Implementation of Self creation for GuiceBuilder.
|
public static GuiceApplicationBuilder fromScalaBuilder(play.api.inject.guice.GuiceApplicationBuilder builder)
public GuiceApplicationBuilder loadConfig(java.util.function.Function<Environment,Configuration> load)
load
- the configuration loaderpublic GuiceApplicationBuilder loadConfig(Configuration conf)
conf
- the configuration@Deprecated public GuiceApplicationBuilder global(GlobalSettings global)
global
- the configurationpublic GuiceApplicationBuilder load(java.util.function.BiFunction<Environment,Configuration,java.util.List<play.api.inject.guice.GuiceableModule>> loader)
loader
- the configurationpublic GuiceApplicationBuilder load(play.api.inject.guice.GuiceableModule... modules)
modules
- the set of overriding modulespublic GuiceApplicationBuilder load(com.google.inject.Module... modules)
modules
- the set of overriding modulespublic GuiceApplicationBuilder load(play.api.inject.Module... modules)
modules
- the set of overriding modulespublic GuiceApplicationBuilder load(play.api.inject.Binding<?>... bindings)
bindings
- the set of binding overridepublic Application build()
protected GuiceApplicationBuilder newBuilder(play.api.inject.guice.GuiceApplicationBuilder builder)
newBuilder
in class GuiceBuilder<GuiceApplicationBuilder,play.api.inject.guice.GuiceApplicationBuilder>