A Play application.
Application creation is handled by the framework engine.
If you need to create an ad-hoc application, for example in case of unit testing, you can easily achieve this using:
val application = new DefaultApplication(new File("."), this.getClass.getClassloader, None, Play.Mode.Dev)
This will create an application using the current classloader.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class DefaultApplication
Members list
Value members
Abstract methods
The default ActorSystem used by the application.
The default ActorSystem used by the application.
Attributes
The application's classloader
The application's classloader
Attributes
The default CoordinatedShutdown to stop the Application
The default CoordinatedShutdown to stop the Application
Attributes
The application's environment
The application's environment
Attributes
The HTTP error handler
The HTTP error handler
Attributes
The absolute path hosting this application, mainly used by the getFile(path) helper method
The absolute path hosting this application, mainly used by the getFile(path) helper method
Attributes
The factory used to create requests for this application.
The factory used to create requests for this application.
Attributes
The HTTP request handler
The HTTP request handler
Attributes
Concrete methods
Return the application as a Java application.
Return the application as a Java application.
Attributes
Get the runtime injector for this application. In a runtime dependency injection based application, this can be used to obtain components as bound by the DI framework.
Get the runtime injector for this application. In a runtime dependency injection based application, this can be used to obtain components as bound by the DI framework.
Attributes
- Returns
-
The injector.
Implicits
Implicits
The default Materializer used by the application.
The default Materializer used by the application.