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 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 interface jakarta.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 interface jakarta.validation.TraversableResolver