|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dtfj.analyzer.util.InitializationHelper
public abstract class InitializationHelper
Helper class to manage lazy initialization in the DEAL library
Constructor Summary | |
---|---|
InitializationHelper(SimpleAnalyzerBean analyzer)
Constructor |
Method Summary | |
---|---|
void |
checkInitialization()
Force initialization of this initializer. |
abstract void |
initialize()
A method that performs all the actual initializations functions that are encapsulated by this initializer. |
boolean |
isInitialized()
Check if the initializer has already completed its initialization. |
void |
setInitializationException(com.ibm.dtfj.image.DTFJException e)
Explicitly mark this initializer has having been initialized in error. |
void |
setInitialized()
Explicitly mark this initializer has having been successfully initialized. |
void |
setUnInitialized()
Explicitly mark this initializer as not being initialized, forcing a new initialization the next time someone calls checkInitialization() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InitializationHelper(SimpleAnalyzerBean analyzer)
analyzer
- reference to the analyzer that is using this initializer
(used to report errors in the proper context)Method Detail |
---|
public abstract void initialize() throws com.ibm.dtfj.image.DTFJException
com.ibm.dtfj.image.DTFJException
public boolean isInitialized()
public void checkInitialization() throws com.ibm.dtfj.image.DTFJException
initialize()
method is called.
com.ibm.dtfj.image.DTFJException
- any exception encountered during initialization,
now or previously.public void setInitialized()
checkInitialization()
.
public void setUnInitialized()
checkInitialization()
.
public void setInitializationException(com.ibm.dtfj.image.DTFJException e)
checkInitialization()
.
e
- the exception encountered during initialization, to be
re-thrown anytime someone tries to check the state of this
initializer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |