public interface InitGuard
Modifier and Type | Method and Description |
---|---|
void |
assertInitialised()
Call to assert that initialisation has taken place prior to this call
|
void |
assertNotInitialised()
Call to assert that initialisation has NOT taken place prior to this call
|
void |
initialise()
Call to set the state to initialised.
|
boolean |
isInitialised()
Returns true if the state is initialised
|
void |
uninitialise()
Call to un-initialise this object
|
void initialise()
java.lang.IllegalStateException
- If the class has already been initialised and multiple initialisations are not allowedvoid uninitialise()
java.lang.IllegalStateException
- The class has not been initialised yetvoid assertInitialised()
java.lang.IllegalStateException
- The class has not been initialisedvoid assertNotInitialised()
java.lang.IllegalStateException
- The class has already been initialisedboolean isInitialised()