public interface Lifecycle
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Lifecycle.LifecycleHandler
Functional interface for lifecycle activities that may run asynchronously
|
static interface |
Lifecycle.LifecycleRegistry
Interface towards the registry that holds all lifecycle handlers for components.
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerLifecycleHandlers(Lifecycle.LifecycleRegistry lifecycle)
Registers the activities to be executed in the various phases of an application's lifecycle.
|
void registerLifecycleHandlers(@Nonnull Lifecycle.LifecycleRegistry lifecycle)
lifecycle - the lifecycle instance to register the handlers withLifecycle.LifecycleRegistry.onShutdown(int, Runnable),
LifecycleRegistry#onShutdown(int, LifecycleHandler),
Lifecycle.LifecycleRegistry.onStart(int, Runnable),
LifecycleRegistry#onStart(int, LifecycleHandler)Copyright © 2010–2023. All rights reserved.