public interface Lifecycle
ManagedEnvironment
s to be
notified with proper lifecycle changes, instead of relying on something
like Environment.onDisconnect(Node)
.
This is primarily intended to be used on the client side, where there
are no nodes, to allow components to know when they are being unloaded.Modifier and Type | Interface and Description |
---|---|
static class |
Lifecycle.LifecycleState
States an object can enter.
|
Modifier and Type | Method and Description |
---|---|
void |
onLifecycleStateChange(Lifecycle.LifecycleState state)
Called when the state of the object changes.
|
void onLifecycleStateChange(Lifecycle.LifecycleState state)
state
- the lifecycle state that is being entered.