Class CompositeTraversableResolver
java.lang.Object
io.micronaut.validation.validator.resolver.CompositeTraversableResolver
- All Implemented Interfaces:
jakarta.validation.TraversableResolver
@Primary
@Singleton
@Internal
public class CompositeTraversableResolver
extends Object
implements jakarta.validation.TraversableResolver
Primary
TraversableResolver
that takes into account all configured TraversableResolver
instances.- Since:
- 1.2.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorDescriptionCompositeTraversableResolver
(List<jakarta.validation.TraversableResolver> traversableResolvers) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isCascadable
(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType) boolean
isReachable
(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType)
-
Constructor Details
-
CompositeTraversableResolver
public CompositeTraversableResolver(List<jakarta.validation.TraversableResolver> traversableResolvers) Default constructor.- Parameters:
traversableResolvers
- The traversable resolvers
-
-
Method Details
-
isReachable
public boolean isReachable(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType) - Specified by:
isReachable
in interfacejakarta.validation.TraversableResolver
-
isCascadable
public boolean isCascadable(Object traversableObject, jakarta.validation.Path.Node traversableProperty, Class<?> rootBeanType, jakarta.validation.Path pathToTraversableObject, ElementType elementType) - Specified by:
isCascadable
in interfacejakarta.validation.TraversableResolver
-