public interface OutOfStateHandler
Implementations will be able to test if a StateManagedComponent
is in the expected state.
Also, all implementations will have a mechanism to handle any component that is not in the expected state.
Use implementations of this interface when you need/expect a particular StateManagedComponent to be in specific state at a given time.
Modifier and Type | Method and Description |
---|---|
void |
handleOutOfState(StateManagedComponent state) |
boolean |
isInCorrectState(StateManagedComponent state) |
boolean isInCorrectState(StateManagedComponent state) throws OutOfStateException
OutOfStateException
void handleOutOfState(StateManagedComponent state) throws OutOfStateException
OutOfStateException