Package play.inject

Class DelegateApplicationLifecycle

java.lang.Object
play.inject.DelegateApplicationLifecycle
All Implemented Interfaces:
ApplicationLifecycle

@Singleton public class DelegateApplicationLifecycle extends Object implements ApplicationLifecycle
  • Constructor Details

    • DelegateApplicationLifecycle

      @Inject public DelegateApplicationLifecycle(play.api.inject.ApplicationLifecycle delegate)
  • Method Details

    • addStopHook

      public void addStopHook(Callable<? extends CompletionStage<?>> hook)
      Description copied from interface: ApplicationLifecycle
      Add 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:
      addStopHook in interface ApplicationLifecycle
      Parameters:
      hook - the stop hook.
    • asScala

      public play.api.inject.ApplicationLifecycle asScala()
      Specified by:
      asScala in interface ApplicationLifecycle
      Returns:
      The Scala version for this Application Lifecycle.