c

play.api.inject

DefaultApplicationLifecycle

class DefaultApplicationLifecycle extends ApplicationLifecycle

Default implementation of the application lifecycle.

Annotations
@Singleton()
Source
ApplicationLifecycle.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultApplicationLifecycle
  2. ApplicationLifecycle
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultApplicationLifecycle()
    Annotations
    @Inject()

Value Members

  1. def addStopHook(hook: () => Future[_]): Unit

    Add a stop hook to be called when the application stops.

    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.

    Definition Classes
    ApplicationLifecycle
  2. def addStopHook(hook: [_ <: CompletionStage[_]]): Unit

    Add a stop hook to be called when the application stops.

    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.

    Definition Classes
    ApplicationLifecycle
  3. def asJava: inject.ApplicationLifecycle

    returns

    the Java version for this Application Lifecycle.

    Definition Classes
    ApplicationLifecycle
  4. def stop(): Future[_]

    Call to shutdown the application.

    Call to shutdown the application.

    returns

    A future that will be redeemed once all hooks have executed.

    Definition Classes
    ApplicationLifecycle