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.
|
default Configuration |
configuration()
Deprecated.
|
default java.io.File |
getFile(java.lang.String relativePath)
Deprecated.
Deprecated as in 2.6.0. Use
Environment.getFile(java.lang.String) instead. |
play.api.Application |
getWrappedApplication()
Get the underlying Scala application.
|
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.
|
default java.net.URL |
resource(java.lang.String relativePath)
Deprecated.
Deprecated as in 2.6.0. Use
Environment.resource(String) instead. |
default java.io.InputStream |
resourceAsStream(java.lang.String relativePath)
Deprecated.
Deprecated as in 2.6.0. Use
Environment.resourceAsStream(String) instead. |
play.api.Application getWrappedApplication()
method
play.api.Application asScala()
Application
@Deprecated default Configuration configuration()
com.typesafe.config.Config config()
Injector injector()
default java.io.File path()
default java.lang.ClassLoader classloader()
@Deprecated default java.io.File getFile(java.lang.String relativePath)
Environment.getFile(java.lang.String)
instead.relativePath
- relative path of the file to fetch@Deprecated default java.net.URL resource(java.lang.String relativePath)
Environment.resource(String)
instead.relativePath
- relative path of the resource to fetch@Deprecated default java.io.InputStream resourceAsStream(java.lang.String relativePath)
Environment.resourceAsStream(String)
instead.relativePath
- relative path of the resource to fetchdefault boolean isDev()
Mode.DEV
mode.default boolean isProd()
Mode.PROD
mode.default boolean isTest()
Mode.TEST
mode.