@Singleton public class DefaultApplication extends java.lang.Object implements Application
Application creation is handled by the framework engine.
Constructor and Description |
---|
DefaultApplication(play.api.Application application,
com.typesafe.config.Config config,
Injector injector)
Deprecated.
|
DefaultApplication(play.api.Application application,
com.typesafe.config.Config config,
Injector injector,
Environment environment)
Create an application that wraps a Scala application.
|
DefaultApplication(play.api.Application application,
Injector injector)
Create an application that wraps a Scala application.
|
Modifier and Type | Method and Description |
---|---|
play.api.Application |
asScala()
Get the application as a Scala application.
|
com.typesafe.config.Config |
config()
Get the application configuration.
|
Environment |
environment()
Get the application environment.
|
play.api.Application |
getWrappedApplication()
Deprecated.
|
Injector |
injector()
Get the injector for this application.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
classloader, isDev, isProd, isTest, path
@Inject public DefaultApplication(play.api.Application application, com.typesafe.config.Config config, Injector injector, Environment environment)
application
- the application to wrapconfig
- the new application's configurationinjector
- the new application's injector@Deprecated public DefaultApplication(play.api.Application application, com.typesafe.config.Config config, Injector injector)
DefaultApplication(play.api.Application, Config, Injector,
Environment)
instead.application
- the application to wrapconfig
- the new application's configurationinjector
- the new application's injectorpublic DefaultApplication(play.api.Application application, Injector injector)
application
- the application to wrapinjector
- the new application's injector@Deprecated public play.api.Application getWrappedApplication()
getWrappedApplication
in interface Application
method
public play.api.Application asScala()
asScala
in interface Application
Application
public Environment environment()
environment
in interface Application
public com.typesafe.config.Config config()
config
in interface Application
public Injector injector()
injector
in interface Application