@Requires(missingBeans=javax.validation.ValidatorFactory.class) @Internal @Singleton public class DefaultValidatorFactory extends Object implements ValidatorFactory
Modifier | Constructor and Description |
---|---|
protected |
DefaultValidatorFactory(Validator validator,
ValidatorConfiguration configuration)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
ClockProvider |
getClockProvider() |
ConstraintValidatorFactory |
getConstraintValidatorFactory() |
MessageInterpolator |
getMessageInterpolator() |
ParameterNameProvider |
getParameterNameProvider() |
TraversableResolver |
getTraversableResolver() |
Validator |
getValidator() |
<T> T |
unwrap(Class<T> type) |
ValidatorContext |
usingContext() |
protected DefaultValidatorFactory(Validator validator, ValidatorConfiguration configuration)
validator
- The validator.configuration
- The configuration.public Validator getValidator()
getValidator
in interface ValidatorFactory
public ValidatorContext usingContext()
usingContext
in interface ValidatorFactory
public MessageInterpolator getMessageInterpolator()
getMessageInterpolator
in interface ValidatorFactory
public TraversableResolver getTraversableResolver()
getTraversableResolver
in interface ValidatorFactory
public ConstraintValidatorFactory getConstraintValidatorFactory()
getConstraintValidatorFactory
in interface ValidatorFactory
public ParameterNameProvider getParameterNameProvider()
getParameterNameProvider
in interface ValidatorFactory
public ClockProvider getClockProvider()
getClockProvider
in interface ValidatorFactory
public <T> T unwrap(Class<T> type)
unwrap
in interface ValidatorFactory
public void close()
close
in interface AutoCloseable
close
in interface ValidatorFactory