public class GuiceApplicationLoader extends java.lang.Object implements ApplicationLoader
builder
and overrides
methods.ApplicationLoader.Context
Modifier and Type | Field and Description |
---|---|
protected GuiceApplicationBuilder |
initialBuilder
The initial builder to start construction from.
|
Constructor and Description |
---|
GuiceApplicationLoader() |
GuiceApplicationLoader(GuiceApplicationBuilder initialBuilder) |
Modifier and Type | Method and Description |
---|---|
GuiceApplicationBuilder |
builder(ApplicationLoader.Context context)
Construct a builder to use for loading the given context.
|
Application |
load(ApplicationLoader.Context context)
Load an application given the context.
|
protected play.api.inject.guice.GuiceableModule[] |
overrides(ApplicationLoader.Context context)
Identify some bindings that should be used as overrides when loading an application using this context.
|
protected final GuiceApplicationBuilder initialBuilder
public GuiceApplicationLoader()
public GuiceApplicationLoader(GuiceApplicationBuilder initialBuilder)
public final Application load(ApplicationLoader.Context context)
ApplicationLoader
load
in interface ApplicationLoader
context
- the context the apps hould be loaded intopublic GuiceApplicationBuilder builder(ApplicationLoader.Context context)
context
- the context the returned builder will loadprotected play.api.inject.guice.GuiceableModule[] overrides(ApplicationLoader.Context context)
context
- the context that should be searched for overrides