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.
|
GuiceApplicationBuilder |
global(GlobalSettings global)
Set the global settings object.
|
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 GuiceApplicationBuilder loadConfig(java.util.function.Function<Environment,Configuration> load)
public GuiceApplicationBuilder loadConfig(Configuration conf)
public GuiceApplicationBuilder global(GlobalSettings global)
public GuiceApplicationBuilder load(java.util.function.BiFunction<Environment,Configuration,java.util.List<play.api.inject.guice.GuiceableModule>> loader)
public GuiceApplicationBuilder load(play.api.inject.guice.GuiceableModule... modules)
public GuiceApplicationBuilder load(com.google.inject.Module... modules)
public GuiceApplicationBuilder load(play.api.inject.Module... modules)
public GuiceApplicationBuilder load(play.api.inject.Binding<?>... bindings)
public Application build()
protected GuiceApplicationBuilder newBuilder(play.api.inject.guice.GuiceApplicationBuilder builder)
newBuilder
in class GuiceBuilder<GuiceApplicationBuilder,play.api.inject.guice.GuiceApplicationBuilder>