use of org.springframework.integration.annotation.UseSpelInvoker in project spring-integration by spring-projects.
the class MessagingMethodInvokerHelper method checkSpelInvokerRequired.
private void checkSpelInvokerRequired(final Class<?> targetClass, Method methodArg, HandlerMethod handlerMethod) {
Method method = AopUtils.getMostSpecificMethod(methodArg, targetClass);
UseSpelInvoker useSpel = AnnotationUtils.findAnnotation(method, UseSpelInvoker.class);
if (useSpel == null) {
useSpel = AnnotationUtils.findAnnotation(targetClass, UseSpelInvoker.class);
}
if (useSpel != null) {
handlerMethod.spelOnly = true;
handlerMethod.useSpelInvoker = useSpel;
}
}
Aggregations