Class ValueExtractorManager
java.lang.Object
org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager
- Author:
- Gunnar Morling, Guillaume Smet, Marko Bekhta
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionValueExtractorManager(Set<ValueExtractor<?>> externalExtractors) ValueExtractorManager(ValueExtractorManager template, Map<ValueExtractorDescriptor.Key, ValueExtractorDescriptor> externalValueExtractorDescriptors) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanstatic Set<ValueExtractor<?>>getMaximallySpecificAndRuntimeContainerElementCompliantValueExtractor(Type declaredType, TypeVariable<?> typeParameter, Class<?> runtimeType, Collection<ValueExtractorDescriptor> valueExtractorCandidates) Used to find the maximally specific and container element compliant value extractor based on the runtime type.inthashCode()
-
Field Details
-
SPEC_DEFINED_EXTRACTORS
-
-
Constructor Details
-
ValueExtractorManager
-
ValueExtractorManager
public ValueExtractorManager(ValueExtractorManager template, Map<ValueExtractorDescriptor.Key, ValueExtractorDescriptor> externalValueExtractorDescriptors)
-
-
Method Details
-
getDefaultValueExtractors
-
getMaximallySpecificAndRuntimeContainerElementCompliantValueExtractor
public ValueExtractorDescriptor getMaximallySpecificAndRuntimeContainerElementCompliantValueExtractor(Type declaredType, TypeVariable<?> typeParameter, Class<?> runtimeType, Collection<ValueExtractorDescriptor> valueExtractorCandidates) Used to find the maximally specific and container element compliant value extractor based on the runtime type.The maximally specific one is chosen among the candidates passed to this method.
Used for cascading validation.
- Throws:
ConstraintDeclarationException- if more than 2 maximally specific container-element-compliant value extractors are found- See Also:
-
getResolver
-
hashCode
public int hashCode() -
equals
-
clear
public void clear()
-