org.hibernate.validator.util
Class LazyValidatorFactory
java.lang.Object
org.hibernate.validator.util.LazyValidatorFactory
- All Implemented Interfaces:
- ValidatorFactory
public class LazyValidatorFactory
- extends Object
- implements ValidatorFactory
This class lazily initialize the ValidatorFactory on the first usage
One benefit is that no domain class is loaded until the
ValidatorFactory is really needed.
Useful to avoid loading classes before JPA is initialized
and has enhanced its classes.
When no Configuration is passed, the provider is Hibernate Validator
This class is used by JBoss AS 6.
Experimental, not considered a public API
- Author:
- Emmanuel Bernard
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyValidatorFactory
public LazyValidatorFactory()
- Use the default ValidatorFactory creation routine
LazyValidatorFactory
public LazyValidatorFactory(Configuration<?> configuration)
getValidator
public Validator getValidator()
- Specified by:
getValidator
in interface ValidatorFactory
usingContext
public ValidatorContext usingContext()
- Specified by:
usingContext
in interface ValidatorFactory
getMessageInterpolator
public MessageInterpolator getMessageInterpolator()
- Specified by:
getMessageInterpolator
in interface ValidatorFactory
getTraversableResolver
public TraversableResolver getTraversableResolver()
- Specified by:
getTraversableResolver
in interface ValidatorFactory
getConstraintValidatorFactory
public ConstraintValidatorFactory getConstraintValidatorFactory()
- Specified by:
getConstraintValidatorFactory
in interface ValidatorFactory
unwrap
public <T> T unwrap(Class<T> clazz)
- Specified by:
unwrap
in interface ValidatorFactory
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved