Class ValueExtractorManager
- java.lang.Object
-
- org.hibernate.validator.internal.engine.valueextraction.ValueExtractorManager
-
public class ValueExtractorManager extends Object
- Author:
- Gunnar Morling, Guillaume Smet, Marko Bekhta
-
-
Field Summary
Fields Modifier and Type Field Description static Set<ValueExtractorDescriptor>SPEC_DEFINED_EXTRACTORS
-
Constructor Summary
Constructors Constructor Description ValueExtractorManager(Set<ValueExtractor<?>> externalExtractors)ValueExtractorManager(ValueExtractorManager template, Map<ValueExtractorDescriptor.Key,ValueExtractorDescriptor> externalValueExtractorDescriptors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleanequals(Object obj)static Set<ValueExtractor<?>>getDefaultValueExtractors()ValueExtractorDescriptorgetMaximallySpecificAndRuntimeContainerElementCompliantValueExtractor(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.ValueExtractorResolvergetResolver()inthashCode()
-
-
-
Field Detail
-
SPEC_DEFINED_EXTRACTORS
public static final Set<ValueExtractorDescriptor> SPEC_DEFINED_EXTRACTORS
-
-
Constructor Detail
-
ValueExtractorManager
public ValueExtractorManager(Set<ValueExtractor<?>> externalExtractors)
-
ValueExtractorManager
public ValueExtractorManager(ValueExtractorManager template, Map<ValueExtractorDescriptor.Key,ValueExtractorDescriptor> externalValueExtractorDescriptors)
-
-
Method Detail
-
getDefaultValueExtractors
public static Set<ValueExtractor<?>> 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:
ValueExtractorResolver.getMaximallySpecificAndRuntimeContainerElementCompliantValueExtractor(Type, TypeVariable, Class, Collection)
-
getResolver
public ValueExtractorResolver getResolver()
-
clear
public void clear()
-
-