public interface Application
Application creation is handled by the framework engine.
Modifier and Type | Method and Description |
---|---|
play.api.Application |
asScala()
Get the application as a Scala application.
|
default java.lang.ClassLoader |
classloader()
Get the application classloader.
|
com.typesafe.config.Config |
config()
Get the application configuration.
|
Environment |
environment()
Get the application environment.
|
play.api.Application |
getWrappedApplication()
Deprecated.
Use
asScala() instead. |
Injector |
injector()
Get the runtime injector for this application.
|
default boolean |
isDev()
Check whether the application is in
Mode.DEV mode. |
default boolean |
isProd()
Check whether the application is in
Mode.PROD mode. |
default boolean |
isTest()
Check whether the application is in
Mode.TEST mode. |
default java.io.File |
path()
Get the application path.
|
@Deprecated play.api.Application getWrappedApplication()
asScala()
instead.method
play.api.Application asScala()
Application
Environment environment()
com.typesafe.config.Config config()
Injector injector()
default java.io.File path()
default java.lang.ClassLoader classloader()
default boolean isDev()
Mode.DEV
mode.default boolean isProd()
Mode.PROD
mode.default boolean isTest()
Mode.TEST
mode.