public final class RouteExecutionStrategyUtils
extends java.lang.Object
RouteExecutionStrategy
annotation.Modifier and Type | Method and Description |
---|---|
static <T extends ExecutionStrategy> |
getAndValidateRouteExecutionStrategyAnnotationIfPresent(java.lang.reflect.Method method,
java.lang.Class<?> clazz,
RouteExecutionStrategyFactory<T> strategyFactory,
java.util.Set<java.lang.String> errors,
T noOffloadsExecutionStrategy)
Returns
ExecutionStrategy for the specified Method and validates that configuration of
RouteExecutionStrategy annotation is correct if present. |
static java.lang.annotation.Annotation |
getRouteExecutionStrategyAnnotation(java.lang.reflect.Method method,
java.lang.Class<?> clazz)
|
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. |
@Nullable 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)
RouteExecutionStrategy
annotation is correct if present.method
- Method
to validateclazz
- Class
to validatestrategyFactory
- a RouteExecutionStrategyFactory
that creates a specificExecutionStrategy
errors
- collection to track all errors related to misconfigurationRouteExecutionStrategy
annotation if present@Nullable public static <T extends ExecutionStrategy> T getAndValidateRouteExecutionStrategyAnnotationIfPresent(java.lang.reflect.Method method, java.lang.Class<?> clazz, RouteExecutionStrategyFactory<T> strategyFactory, java.util.Set<java.lang.String> errors, T noOffloadsExecutionStrategy)
ExecutionStrategy
for the specified Method
and validates that configuration of
RouteExecutionStrategy
annotation is correct if present.T
- specific implementation type of ExecutionStrategy
method
- Method
to validateclazz
- Class
to validatestrategyFactory
- a RouteExecutionStrategyFactory
that creates a specificExecutionStrategy
errors
- collection to track all errors related to misconfigurationnoOffloadsExecutionStrategy
- an ExecutionStrategy
for NoOffloadsRouteExecutionStrategy
ExecutionStrategy
or null
if not defined@Nullable public static java.lang.annotation.Annotation getRouteExecutionStrategyAnnotation(java.lang.reflect.Method method, java.lang.Class<?> clazz)
method
- an endpoint methodclazz
- an endpoint classRouteExecutionStrategy
annotation if exists on Method
or Class