org.hibernate.validator.internal.util
Class LazyValidatorFactory

java.lang.Object
  extended by org.hibernate.validator.internal.util.LazyValidatorFactory
All Implemented Interfaces:
javax.validation.ValidatorFactory

Deprecated. Will be removed in a future release.

@Deprecated
public class LazyValidatorFactory
extends Object
implements javax.validation.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, Hardy Ferentschik

Constructor Summary
LazyValidatorFactory()
          Deprecated. Use the default ValidatorFactory creation routine
LazyValidatorFactory(javax.validation.Configuration<?> configuration)
          Deprecated.  
 
Method Summary
 javax.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
          Deprecated.  
 javax.validation.MessageInterpolator getMessageInterpolator()
          Deprecated.  
 javax.validation.TraversableResolver getTraversableResolver()
          Deprecated.  
 javax.validation.Validator getValidator()
          Deprecated.  
<T> T
unwrap(Class<T> clazz)
          Deprecated.  
 javax.validation.ValidatorContext usingContext()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyValidatorFactory

public LazyValidatorFactory()
Deprecated. 
Use the default ValidatorFactory creation routine


LazyValidatorFactory

public LazyValidatorFactory(javax.validation.Configuration<?> configuration)
Deprecated. 
Method Detail

getValidator

public javax.validation.Validator getValidator()
Deprecated. 
Specified by:
getValidator in interface javax.validation.ValidatorFactory

usingContext

public javax.validation.ValidatorContext usingContext()
Deprecated. 
Specified by:
usingContext in interface javax.validation.ValidatorFactory

getMessageInterpolator

public javax.validation.MessageInterpolator getMessageInterpolator()
Deprecated. 
Specified by:
getMessageInterpolator in interface javax.validation.ValidatorFactory

getTraversableResolver

public javax.validation.TraversableResolver getTraversableResolver()
Deprecated. 
Specified by:
getTraversableResolver in interface javax.validation.ValidatorFactory

getConstraintValidatorFactory

public javax.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
Deprecated. 
Specified by:
getConstraintValidatorFactory in interface javax.validation.ValidatorFactory

unwrap

public <T> T unwrap(Class<T> clazz)
Deprecated. 
Specified by:
unwrap in interface javax.validation.ValidatorFactory


Copyright © 2012 Oracle Corporation. All Rights Reserved.