Save This Page
Home » hibernate-validator-src-20081106 » javax.validation » [javadoc | source]
javax.validation
public interface: ValidatorFactory [javadoc | source] Factory returning initialized Validator instances. Implementations are thread-safe This object is typically cached and reused.
Method from javax.validation.ValidatorFactory Summary:
getMessageResolver,   getValidator,   getValidator
Method from javax.validation.ValidatorFactory Detail:
 public MessageResolver getMessageResolver()
    Returns the MessageResolver instance configured at initialization time for the ValidatorFactory This is the instance used by #getValidator(Class)
 public Validator getValidator(Class clazz)
    return an initialized Validator instance for the specific class. Validator instances can be pooled and shared by the implementation
 public Validator getValidator(Class clazz,
    MessageResolver messageResolver)
    return an initialized Validator instance for the specific class. Validator instances can be pooled and shared by the implementation The returned Validator instance must use the MessageResolver instance passed as a parameter to resolve error messages.