public static interface Destroyable.DestroyAutomaton extends Destroyable
Destroyable.DestroyAutomaton
interface defines those methods related to
the destroy life-cycle.Destroyable.DestroyAutomaton
Modifier and Type | Method and Description |
---|---|
boolean |
isDestroyable()
Determines whether the component may get destroyed.
|
boolean |
isDestroyed()
Determines whether the component is destroyed.
|
destroy
boolean isDestroyable()
Destroyable.destroy()
is possible.boolean isDestroyed()
Component
instance's methods
(except the Destroyable.destroy()
method) must throw an
IllegalStateException
as by definition a once destroyed
Component
is in the state of being destroyed which is
irreversible.Copyright © 2017. All rights reserved.