Package com.nt.udc.util.state
Class StateRestorer
java.lang.Object
com.nt.udc.util.state.StateRestorer
This class restores the state of its registered Objects.
-
Constructor Summary
ConstructorsConstructorDescriptionStateRestorer(LoggerIfc logger, StateMerger stateMerger) Creates a StateRestorer Object. -
Method Summary
Modifier and TypeMethodDescriptionvoidRestores the state of the registered Objects.voidsetBufferArray(StateBufferSaveable[] array) Sets the array of StateBufferSaveable Objects to restore.voidsetDirArray(StateDirectorySaveable[] array) Sets the array of StateDirectorySaveable Objects to restore.voidsetStateBufferFileName(String stateBufferFileName) Sets the current state buffer file.
-
Constructor Details
-
StateRestorer
Creates a StateRestorer Object.- Parameters:
logger- Logger for warnings and errors.stateMerger- Merges the saved states.
-
-
Method Details
-
setBufferArray
Sets the array of StateBufferSaveable Objects to restore.- Parameters:
array- Array of StateBufferSaveable Objects to save.
-
setDirArray
Sets the array of StateDirectorySaveable Objects to restore.- Parameters:
array- Array of StateDirectorySaveable Objects to save.
-
setStateBufferFileName
Sets the current state buffer file.- Parameters:
stateBufferFileName- Buffer file, containing the states.
-
restoreState
Restores the state of the registered Objects.- Throws:
StateException
-