|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springmodules.validation.bean.context.ValidationContextHolder
public class ValidationContextHolder
A holder to hold thread bound validation contexts. Calling setValidationContext(ValidationContext)
and then
getValidationContext()
by the same thread garenteas that the second call will return the same runtime
ValidationContext
instance as was set by the first call.
Constructor Summary | |
---|---|
ValidationContextHolder()
|
Method Summary | |
---|---|
static void |
clearContext()
Clears this holder. |
static ValidationContext |
getValidationContext()
Returns the ValidationContext held by this holder, or null if nothing is held. |
static void |
setValidationContext(ValidationContext context)
Sets the ${ValidationContext} to be held by this holder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationContextHolder()
Method Detail |
---|
public static ValidationContext getValidationContext()
ValidationContext
held by this holder, or null
if nothing is held.
ValidationContext
held by this holder.public static void setValidationContext(ValidationContext context)
context
- public static void clearContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |