public interface ValueExtractorRegistry
Modifier and Type | Method and Description |
---|---|
<T> Optional<javax.validation.valueextraction.ValueExtractor<T>> |
findUnwrapValueExtractor(Class<T> targetType)
Finds a concrete
ValueExtractor without searching the hierarchy. |
<T> Optional<javax.validation.valueextraction.ValueExtractor<T>> |
findValueExtractor(Class<T> targetType)
Finds a a
ValueExtractor for the given type. |
default <T> javax.validation.valueextraction.ValueExtractor<T> |
getValueExtractor(Class<T> targetType)
Gets a a
ValueExtractor for the given type. |
@NonNull <T> Optional<javax.validation.valueextraction.ValueExtractor<T>> findValueExtractor(@NonNull Class<T> targetType)
ValueExtractor
for the given type.T
- The target typetargetType
- The target type of the value@NonNull <T> Optional<javax.validation.valueextraction.ValueExtractor<T>> findUnwrapValueExtractor(@NonNull Class<T> targetType)
ValueExtractor
without searching the hierarchy.T
- The target typetargetType
- The target type of the value@NonNull default <T> javax.validation.valueextraction.ValueExtractor<T> getValueExtractor(@NonNull Class<T> targetType)
ValueExtractor
for the given type.T
- The target typetargetType
- The target type of the valueValidationException
- if no extractor is present