public class WithApplication extends Object
Modifier and Type | Field and Description |
---|---|
protected Application |
app |
protected akka.stream.Materializer |
mat
The application's Akka streams Materializer.
|
Constructor and Description |
---|
WithApplication() |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
instanceOf(Class<T> clazz)
Provides an instance from the application.
|
protected Application |
provideApplication()
Override this method to setup the application to use.
|
void |
startPlay() |
void |
stopPlay() |
protected Application app
protected akka.stream.Materializer mat
protected Application provideApplication()
protected <T> T instanceOf(Class<T> clazz)
T
- the type to return, using `app.injector.instanceOf`clazz
- the type's class.public void startPlay()
public void stopPlay()