|
|||||||||
| 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()
Deprecated. Usage of this method is deprecated, if you need this info in your validator define it as a complex validator. In a next release this will be removed! |
static void |
remove()
Clean this thread local. |
static void |
setValidateCallInfo(ValidatorCallInfo info)
Deprecated. Usage of this method is deprecated, if you need this info in your validator define it as a complex validator. In a next release this will be removed! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadState()
| Method Detail |
|---|
@Deprecated public static void setValidateCallInfo(ValidatorCallInfo info)
@Deprecated 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 | ||||||||