Interface ValueExtractorRegistry
-
- All Known Implementing Classes:
DefaultValueExtractors
public interface ValueExtractorRegistryRegistry of value extractors.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>>findUnwrapValueExtractor(java.lang.Class<T> targetType)Finds a concreteValueExtractorwithout searching the hierarchy.<T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>>findValueExtractor(java.lang.Class<T> targetType)Finds a aValueExtractorfor the given type.default <T> javax.validation.valueextraction.ValueExtractor<T>getValueExtractor(java.lang.Class<T> targetType)Gets a aValueExtractorfor the given type.
-
-
-
Method Detail
-
findValueExtractor
@NonNull <T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>> findValueExtractor(@NonNull java.lang.Class<T> targetType)Finds a aValueExtractorfor the given type.- Type Parameters:
T- The target type- Parameters:
targetType- The target type of the value- Returns:
- The extractor
-
findUnwrapValueExtractor
@NonNull <T> java.util.Optional<javax.validation.valueextraction.ValueExtractor<T>> findUnwrapValueExtractor(@NonNull java.lang.Class<T> targetType)Finds a concreteValueExtractorwithout searching the hierarchy.- Type Parameters:
T- The target type- Parameters:
targetType- The target type of the value- Returns:
- The extractor
-
getValueExtractor
@NonNull default <T> javax.validation.valueextraction.ValueExtractor<T> getValueExtractor(@NonNull java.lang.Class<T> targetType)Gets a aValueExtractorfor the given type.- Type Parameters:
T- The target type- Parameters:
targetType- The target type of the value- Returns:
- The extractor
- Throws:
javax.validation.ValidationException- if no extractor is present
-
-