public class DestroyHandlingStateOp extends java.lang.Object implements StateOperator
StateOperator
s don't need to
handle the destroyed state because the Arooa Framework ensures that
a child is removed from a parent before it is destroyed. There are
however situations where a job adds it's own children and must cope
with them being destroyed. RunJob
is one such example.Constructor and Description |
---|
DestroyHandlingStateOp(StateOperator delegate) |
Modifier and Type | Method and Description |
---|---|
StateEvent |
evaluate(StateEvent... states)
Evaluate the given states.
|
protected StateEvent |
onDestroyed(int index) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toParentEvent
public DestroyHandlingStateOp(StateOperator delegate)
public StateEvent evaluate(StateEvent... states)
StateOperator
evaluate
in interface StateOperator
states
- The states.protected StateEvent onDestroyed(int index)