Upgrade to the latest SF and fix HTTP Reactive

https://build.spring.io/browse/INT-FATS5IC-206/

Also use `AopUtils.getTargetClass()` directly in the
`ReactiveHttpRequestExecutingMessageHandler` since it never returns `null`
This commit is contained in:
Artem Bilan
2017-06-21 10:43:36 -04:00
parent 42dd05d655
commit ecb7d03895
3 changed files with 4 additions and 8 deletions

View File

@@ -148,7 +148,8 @@ public class MessagingAnnotationPostProcessor implements BeanPostProcessor, Bean
@Override
public Object postProcessAfterInitialization(final Object bean, final String beanName) throws BeansException {
Assert.notNull(this.beanFactory, "BeanFactory must not be null");
final Class<?> beanClass = this.getBeanClass(bean);
Class<?> beanClass = AopUtils.getTargetClass(bean);
ReflectionUtils.doWithMethods(beanClass, method -> {
Map<Class<? extends Annotation>, List<Annotation>> annotationChains = new HashMap<>();
@@ -260,11 +261,6 @@ public class MessagingAnnotationPostProcessor implements BeanPostProcessor, Bean
return false;
}
protected Class<?> getBeanClass(Object bean) {
Class<?> targetClass = AopUtils.getTargetClass(bean);
return (targetClass != null) ? targetClass : bean.getClass();
}
protected String generateBeanName(String originalBeanName, Method method,
Class<? extends Annotation> annotationType) {
String baseName = originalBeanName + "." + method.getName() + "."