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