@Singleton public class DelegateApplicationLifecycle extends java.lang.Object implements ApplicationLifecycle
Constructor and Description |
---|
DelegateApplicationLifecycle(play.api.inject.ApplicationLifecycle delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addStopHook(java.util.concurrent.Callable<F.Promise<java.lang.Void>> hook)
Add a stop hook to be called when the application stops.
|
@Inject public DelegateApplicationLifecycle(play.api.inject.ApplicationLifecycle delegate)
public void addStopHook(java.util.concurrent.Callable<F.Promise<java.lang.Void>> hook)
ApplicationLifecycle
addStopHook
in interface ApplicationLifecycle