Package play.inject
Class DelegateApplicationLifecycle
java.lang.Object
play.inject.DelegateApplicationLifecycle
- All Implemented Interfaces:
ApplicationLifecycle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStopHook(Callable<? extends CompletionStage<?>> hook) Add a stop hook to be called when the application stops.play.api.inject.ApplicationLifecycleasScala()
-
Constructor Details
-
DelegateApplicationLifecycle
@Inject public DelegateApplicationLifecycle(play.api.inject.ApplicationLifecycle delegate)
-
-
Method Details
-
addStopHook
Description copied from interface:ApplicationLifecycleAdd a stop hook to be called when the application stops.The stop hook should redeem the returned future when it is finished shutting down. It is acceptable to stop immediately and return a successful future.
- Specified by:
addStopHookin interfaceApplicationLifecycle- Parameters:
hook- the stop hook.
-
asScala
public play.api.inject.ApplicationLifecycle asScala()- Specified by:
asScalain interfaceApplicationLifecycle- Returns:
- The Scala version for this Application Lifecycle.
-