Validator instances. This is the Hibernate Validator default
implementation of the ValidatorFactory interface.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BeanMetaDataClassNormalizer | |
| private final ConcurrentMap | beanMetaDataManagers
Prior to the introduction of |
| private final ConstraintCreationContext | constraintCreationContext
The constraint creation context containing all the helpers necessary to the constraint creation. |
| private final Set | constraintMappings
Programmatic constraints passed via the Hibernate Validator specific API. |
| private final ExecutableHelper | executableHelper
Used for discovering overridden methods. |
| private final JavaBeanHelper | |
| private static final Log | |
| private final MethodValidationConfiguration | methodValidationConfiguration
Hibernate Validator specific flags to relax constraints on parameters. |
| private final ValidationOrderGenerator | |
| private final ValidatorFactoryScopedContext | validatorFactoryScopedContext
Context containing all |
| private final XmlMetaDataProvider | xmlMetaDataProvider
Metadata provider for XML configuration. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| public void | |
| pack-priv Validator | createValidator(ConstraintValidatorFactory constraintValidatorFactory, ConstraintCreationContext constraintCreationContext, ValidatorFactoryScopedContext validatorFactoryScopedContext, MethodValidationConfiguration methodValidationConfiguration)
|
| public ClockProvider | getClockProvider()
Implements jakarta. ClockProvider instance configured at
initialization time for the ValidatorFactory.
|
| pack-priv ConstraintCreationContext | |
| public ConstraintValidatorFactory | getConstraintValidatorFactory()
Implements jakarta. ConstraintValidatorFactory instance
configured at initialization time for the
ValidatorFactory.
|
| public ExecutableParameterNameProvider | |
| public GetterPropertySelectionStrategy | getGetterPropertySelectionStrategy()
Implements org. |
| public MessageInterpolator | getMessageInterpolator()
Implements jakarta. MessageInterpolator instance configured at
initialization time for the ValidatorFactory.
|
| pack-priv MethodValidationConfiguration | |
| public ParameterNameProvider | getParameterNameProvider()
Implements jakarta. ParameterNameProvider instance configured at
initialization time for the ValidatorFactory.
|
| public PropertyNodeNameProvider | getPropertyNodeNameProvider()
Implements org. |
| public ScriptEvaluatorFactory | getScriptEvaluatorFactory()
Implements org. ScriptEvaluators used to
evaluate script expressions of ScriptAssert and ParameterScriptAssert
constraints.
|
| public Duration | getTemporalValidationTolerance()
Implements org. |
| public TraversableResolver | getTraversableResolver()
Implements jakarta. TraversableResolver instance configured
at initialization time for the ValidatorFactory.
|
| public Validator | getValidator()
Implements jakarta. Validator instance using the
factory defaults for message interpolator, traversable resolver
and constraint validator factory.
|
| public ValidatorFactoryScopedContext | |
| public boolean | |
| public boolean | |
| public <T> T | unwrap(Class<T>
the class of the object to be returned type)Implements jakarta. |
| public HibernateValidatorContext | usingContext()
Implements org. |
| beanMetadataClassNormalizer | back to summary |
|---|---|
| private final BeanMetaDataClassNormalizer beanMetadataClassNormalizer | |
| beanMetaDataManagers | back to summary |
|---|---|
| private final ConcurrentMap<ValidatorFactoryImpl. Prior to the introduction of | |
| constraintCreationContext | back to summary |
|---|---|
| private final ConstraintCreationContext constraintCreationContext The constraint creation context containing all the helpers necessary to the constraint creation. | |
| constraintMappings | back to summary |
|---|---|
| private final Set<DefaultConstraintMapping> constraintMappings Programmatic constraints passed via the Hibernate Validator specific API. Empty if there are no programmatic constraints | |
| executableHelper | back to summary |
|---|---|
| private final ExecutableHelper executableHelper Used for discovering overridden methods. Thread-safe. | |
| javaBeanHelper | back to summary |
|---|---|
| private final JavaBeanHelper javaBeanHelper | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| methodValidationConfiguration | back to summary |
|---|---|
| private final MethodValidationConfiguration methodValidationConfiguration Hibernate Validator specific flags to relax constraints on parameters. | |
| validationOrderGenerator | back to summary |
|---|---|
| private final ValidationOrderGenerator validationOrderGenerator | |
| validatorFactoryScopedContext | back to summary |
|---|---|
| private final ValidatorFactoryScopedContext validatorFactoryScopedContext Context containing all | |
| xmlMetaDataProvider | back to summary |
|---|---|
| private final XmlMetaDataProvider xmlMetaDataProvider Metadata provider for XML configuration. | |
| ValidatorFactoryImpl | back to summary |
|---|---|
| public ValidatorFactoryImpl(ConfigurationState configurationState) | |
| buildMetaDataProviders | back to summary |
|---|---|
| private List | |
| close | back to summary |
|---|---|
| public void close() Implements jakarta. Doc from jakarta. Closes the
| |
| createValidator | back to summary |
|---|---|
| pack-priv Validator createValidator(ConstraintValidatorFactory constraintValidatorFactory, ConstraintCreationContext constraintCreationContext, ValidatorFactoryScopedContext validatorFactoryScopedContext, MethodValidationConfiguration methodValidationConfiguration) | |
| getClockProvider | back to summary |
|---|---|
| public ClockProvider getClockProvider() Implements jakarta. Doc from jakarta. Returns the
| |
| getConstraintCreationContext | back to summary |
|---|---|
| pack-priv ConstraintCreationContext getConstraintCreationContext() | |
| getConstraintValidatorFactory | back to summary |
|---|---|
| public ConstraintValidatorFactory getConstraintValidatorFactory() Implements jakarta. Doc from jakarta. Returns the
| |
| getExecutableParameterNameProvider | back to summary |
|---|---|
| public ExecutableParameterNameProvider getExecutableParameterNameProvider() | |
| getGetterPropertySelectionStrategy | back to summary |
|---|---|
| public GetterPropertySelectionStrategy getGetterPropertySelectionStrategy() Implements org. Doc from org. Returns the getter property selection strategy defining the rules determining if a method is a getter or not.
| |
| getMessageInterpolator | back to summary |
|---|---|
| public MessageInterpolator getMessageInterpolator() Implements jakarta. Doc from jakarta. Returns the
| |
| getMethodValidationConfiguration | back to summary |
|---|---|
| pack-priv MethodValidationConfiguration getMethodValidationConfiguration() | |
| getParameterNameProvider | back to summary |
|---|---|
| public ParameterNameProvider getParameterNameProvider() Implements jakarta. Doc from jakarta. Returns the
| |
| getPropertyNodeNameProvider | back to summary |
|---|---|
| public PropertyNodeNameProvider getPropertyNodeNameProvider() Implements org. Doc from org. Returns the property node name provider used to resolve the name of a property node when creating the property path.
| |
| getScriptEvaluatorFactory | back to summary |
|---|---|
| public ScriptEvaluatorFactory getScriptEvaluatorFactory() Implements org. Doc from org. Returns the factory responsible for creating
| |
| getTemporalValidationTolerance | back to summary |
|---|---|
| public Duration getTemporalValidationTolerance() Implements org. Doc from org. Returns the temporal validation tolerance i.e. the acceptable margin of error when comparing date/time in temporal constraints. | |
| getTraversableResolver | back to summary |
|---|---|
| public TraversableResolver getTraversableResolver() Implements jakarta. Doc from jakarta. Returns the
| |
| getValidator | back to summary |
|---|---|
| public Validator getValidator() Implements jakarta. Doc from jakarta. Returns an initialized Validator instances can be pooled and shared by the implementation. | |
| getValidatorFactoryScopedContext | back to summary |
|---|---|
| public ValidatorFactoryScopedContext getValidatorFactoryScopedContext() | |
| isFailFast | back to summary |
|---|---|
| public boolean isFailFast() | |
| isTraversableResolverResultCacheEnabled | back to summary |
|---|---|
| public boolean isTraversableResolverResultCacheEnabled() | |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> type) Implements jakarta. Doc from jakarta. Returns an instance of the specified type allowing access to
provider-specific APIs. If the Jakarta Bean Validation provider
implementation does not support the specified class, a
| |
| usingContext | back to summary |
|---|---|
| public HibernateValidatorContext usingContext() Implements org. Doc from org. Returns a context for validator configuration via options from the Bean Validation API as well as specific ones from Hibernate Validator.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final MethodValidationConfiguration | |
| private final ExecutableParameterNameProvider | |
| private final ValueExtractorManager |
| Access | Constructor and Description |
|---|---|
| public | BeanMetaDataManagerKey(ExecutableParameterNameProvider parameterNameProvider, ValueExtractorManager valueExtractorManager, MethodValidationConfiguration methodValidationConfiguration)
|
| Modifier and Type | Method and Description |
|---|---|
| private static int | buildHashCode(ExecutableParameterNameProvider parameterNameProvider, ValueExtractorManager valueExtractorManager, MethodValidationConfiguration methodValidationConfiguration)
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String |
| hashCode | back to summary |
|---|---|
| private final int hashCode | |
| methodValidationConfiguration | back to summary |
|---|---|
| private final MethodValidationConfiguration methodValidationConfiguration | |
| parameterNameProvider | back to summary |
|---|---|
| private final ExecutableParameterNameProvider parameterNameProvider | |
| valueExtractorManager | back to summary |
|---|---|
| private final ValueExtractorManager valueExtractorManager | |
| BeanMetaDataManagerKey | back to summary |
|---|---|
| public BeanMetaDataManagerKey(ExecutableParameterNameProvider parameterNameProvider, ValueExtractorManager valueExtractorManager, MethodValidationConfiguration methodValidationConfiguration) | |
| buildHashCode | back to summary |
|---|---|
| private static int buildHashCode(ExecutableParameterNameProvider parameterNameProvider, ValueExtractorManager valueExtractorManager, MethodValidationConfiguration methodValidationConfiguration) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |