Class DefaultValueExtractors
java.lang.Object
io.micronaut.validation.validator.extractors.DefaultValueExtractors
- All Implemented Interfaces:
ValueExtractorRegistry
@Internal
@Singleton
@Introspected
public final class DefaultValueExtractors
extends Object
implements ValueExtractorRegistry
The default value extractors.
- Since:
- 1.2
- Author:
- graemerocher
-
Constructor Summary
ModifierConstructorDescriptionDefault constructor.protected
DefaultValueExtractors
(@Nullable io.micronaut.context.BeanContext beanContext) Constructor used during DI. -
Method Summary
Modifier and TypeMethodDescription<T> void
addValueExtractor
(ValueExtractorDefinition<T> valueExtractorDefinition) <T> @NonNull List<ValueExtractorDefinition<T>>
findValueExtractors
(@NonNull Class<T> targetType) FindsValueExtractor
s for the given type.
-
Constructor Details
-
DefaultValueExtractors
public DefaultValueExtractors()Default constructor. -
DefaultValueExtractors
@Inject protected DefaultValueExtractors(@Nullable @Nullable io.micronaut.context.BeanContext beanContext) Constructor used during DI.- Parameters:
beanContext
- The bean context
-
-
Method Details
-
addValueExtractor
- Specified by:
addValueExtractor
in interfaceValueExtractorRegistry
-
findValueExtractors
@NonNull public <T> @NonNull List<ValueExtractorDefinition<T>> findValueExtractors(@NonNull @NonNull Class<T> targetType) Description copied from interface:ValueExtractorRegistry
FindsValueExtractor
s for the given type.- Specified by:
findValueExtractors
in interfaceValueExtractorRegistry
- Type Parameters:
T
- The target type- Parameters:
targetType
- The target type of the value- Returns:
- The extractor
-