|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidatorFactory
Factory returning initialized Validator
instances.
Implementations are thread-safe
This object is typically cached and reused.
Method Summary | ||
---|---|---|
MessageInterpolator |
getMessageInterpolator()
Returns the MessageInterpolator instance configured at
initialization time for the ValidatorFactory |
|
Validator |
getValidator()
|
|
|
unwrap(java.lang.Class<T> type)
Return an object of the specified type to allow access to the provider-specific API. |
|
ValidatorContext |
usingContext()
Define the validator context and return a Validator compliant
with this state. |
Method Detail |
---|
Validator getValidator()
Validator
instance using the default
factory instances for message interpolator and traversable resolver.
Validator instances can be pooled and shared by the implementation.
ValidatorContext usingContext()
Validator
compliant
with this state.
ValidatorContext
.MessageInterpolator getMessageInterpolator()
MessageInterpolator
instance configured at
initialization time for the ValidatorFactory.
This is the instance used by #getValidator().
- Returns:
- MessageInterpolator instance.
<T> T unwrap(java.lang.Class<T> type)
type
- the class of the object to be returned.
ValidationException
- if the provider does not
support the call.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |