wvlet.airframe.lifecycle

Type members

Classlikes

case object AFTER_START extends LifeCycleHookType
class CloseHook(val injectee: Injectee) extends LifeCycleHook
Companion:
class
case class EventHookHolder[A](injectee: Injectee, hook: A => Any) extends LifeCycleHook with LogSupport
Companion:
object
object FILOLifeCycleHookExecutor extends LifeCycleEventHandler with LogSupport

First In, Last Out (FILO) hook executor.

First In, Last Out (FILO) hook executor.

If objects are injected in A -> B -> C order, the init and shutdown orders will be as follows: init hook call order: A -> B -> C shutdown hook call order: C -> B -> A

case object INIT extends LifeCycleStage
class Injectee(val surface: Surface, val injectee: Any)
object JSR250LifeCycleExecutor extends LifeCycleEventHandler with LogSupport

Support @PreDestroy and @PostConstruct

Support @PreDestroy and @PostConstruct

sealed trait LifeCycleHookType
class LifeCycleManager(val eventHandler: LifeCycleEventHandler, val coreEventHandler: LifeCycleEventHandler) extends LogSupport

LifeCycleManager manages the life cycle of objects within a Session

LifeCycleManager manages the life cycle of objects within a Session

Companion:
object
Companion:
class
sealed trait LifeCycleStage
class MethodCallHook(val injectee: Injectee, method: Method) extends LifeCycleHook
case object ON_INIT extends LifeCycleHookType
case object ON_INJECT extends LifeCycleHookType
case object ON_SHUTDOWN extends LifeCycleHookType
case object ON_START extends LifeCycleHookType
case object STARTED extends LifeCycleStage
case object STARTING extends LifeCycleStage
case object STOPPED extends LifeCycleStage
case object STOPPING extends LifeCycleStage