|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.javalid.core.ThreadState
public class ThreadState
This class maintains the state of current thread. Generally this is not needed, but for instance the validation implementation for ValidateMap requires this in order to know some extra information to continue its validation.
The class stores state in a threadlocal.
| Constructor Summary | |
|---|---|
ThreadState()
|
|
| Method Summary | |
|---|---|
static ValidatorCallInfo |
getValidateCallInfo()
Returns ValidatorCallInfo associated with current thread, note it is set during a call to validateObject / validateProperty. |
static void |
remove()
Clean this thread local. |
static void |
setValidateCallInfo(ValidatorCallInfo info)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadState()
| Method Detail |
|---|
public static void setValidateCallInfo(ValidatorCallInfo info)
public static ValidatorCallInfo getValidateCallInfo()
WARNING: If you call validateObject / validateProperty after retrieving this instance, and then use this instance again you are in TROUBLE as the state is already updated again then. Thus: Make sure to clone this object first then!!! Or you will get invalid state and undetermined behavior!!!!
public static void remove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||