Package org.openbravo.dal.core
Class ThreadHandler
- java.lang.Object
-
- org.openbravo.dal.core.ThreadHandler
-
- Direct Known Subclasses:
DalThreadHandler
public abstract class ThreadHandler extends Object
A convenience class which can be used as a base class for when specific actions need to be done before or after a thread has run. cleaning up certain threadlocals.- Author:
- mtaal
-
-
Constructor Summary
Constructors Constructor Description ThreadHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doAction()
protected abstract void
doBefore()
protected abstract void
doFinal(boolean errorOccured)
void
run()
Run the thread, this method will call the protected methods doBefore, doAction and doFinal.
-