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