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 |
load(java.util.function.BiFunction<Environment,Configuration,java.util.List<play.api.inject.guice.GuiceableModule>> loader)
Deprecated.
Use withModuleLoader instead
|
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(com.typesafe.config.Config conf)
Set the initial configuration.
|
GuiceApplicationBuilder |
loadConfig(Configuration conf)
Deprecated.
Use loadConfig(Config
|
GuiceApplicationBuilder |
loadConfig(java.util.function.Function<Environment,Configuration> load)
Deprecated.
Use withConfigLoader
|
protected GuiceApplicationBuilder |
newBuilder(play.api.inject.guice.GuiceApplicationBuilder builder)
Implementation of Self creation for GuiceBuilder.
|
GuiceApplicationBuilder |
withConfigLoader(java.util.function.Function<Environment,com.typesafe.config.Config> load)
Set the initial configuration loader.
|
GuiceApplicationBuilder |
withModuleLoader(java.util.function.BiFunction<Environment,com.typesafe.config.Config,java.util.List<play.api.inject.guice.GuiceableModule>> loader)
Set the module loader.
|
public static GuiceApplicationBuilder fromScalaBuilder(play.api.inject.guice.GuiceApplicationBuilder builder)
public GuiceApplicationBuilder withConfigLoader(java.util.function.Function<Environment,com.typesafe.config.Config> load)
load
- the configuration loader@Deprecated public GuiceApplicationBuilder loadConfig(java.util.function.Function<Environment,Configuration> load)
load
- the configuration loaderpublic GuiceApplicationBuilder loadConfig(com.typesafe.config.Config conf)
conf
- the configuration@Deprecated public GuiceApplicationBuilder loadConfig(Configuration conf)
conf
- the configurationpublic GuiceApplicationBuilder withModuleLoader(java.util.function.BiFunction<Environment,com.typesafe.config.Config,java.util.List<play.api.inject.guice.GuiceableModule>> loader)
loader
- the configuration@Deprecated public 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>