|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStateManager
A state manager. It seems a manager who's responsible for the perstence of the states.
Method Summary | ||
---|---|---|
|
createState(java.lang.Class<T> c)
Create and return a state. |
|
|
getOrCreateState(java.lang.Class<T> c)
Return the state of a certain class. |
|
|
getState(java.lang.Class<T> c)
Return the state of a certain class. |
|
void |
loadStates()
Load the states. |
|
void |
registerState(IState state)
Register a new state. |
Method Detail |
---|
void registerState(IState state)
state
- The state to register.<T extends IState> T getState(java.lang.Class<T> c)
T
- The state type.c
- The state class.
<T extends IState> T getOrCreateState(java.lang.Class<T> c) throws StateException
T
- The state type.c
- The state class.
StateException
- If an error occurs during the state getting.<T extends IState> T createState(java.lang.Class<T> c) throws StateException
T
- The state type.c
- The state class.
StateException
- If an error occurs during the state creation.void loadStates() throws ManagerException
ManagerException
- If an error occurs during the state loading.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |