Class RouteExecutionStrategyUtils

  • public final class RouteExecutionStrategyUtils
    extends java.lang.Object
    Utilities to handle RouteExecutionStrategy annotation.
    • Method Detail

      • validateRouteExecutionStrategyAnnotationIfPresent

        public static java.lang.annotation.Annotation validateRouteExecutionStrategyAnnotationIfPresent​(java.lang.reflect.Method method,
                                                                                                        java.lang.Class<?> clazz,
                                                                                                        RouteExecutionStrategyFactory<? extends ExecutionStrategy> strategyFactory,
                                                                                                        java.util.Set<java.lang.String> errors)
        Validates configuration of RouteExecutionStrategy annotation is correct if present.
        method - Method to validate
        clazz - Class to validate
        strategyFactory - a RouteExecutionStrategyFactory that creates a specificExecutionStrategy
        errors - collection to track all errors related to misconfiguration
        an instance of RouteExecutionStrategy annotation if present
      • getRouteExecutionStrategyAnnotation

        public static java.lang.annotation.Annotation getRouteExecutionStrategyAnnotation​(java.lang.reflect.Method method,
                                                                                          java.lang.Class<?> clazz)
        Returns RouteExecutionStrategy annotation if exists on Method or Class.
        method - an endpoint method
        clazz - an endpoint class
        RouteExecutionStrategy annotation if exists on Method or Class