Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -322,7 +322,7 @@ class PostProcessorRegistrationDelegate {
|
||||
if (bean != null && !(bean instanceof BeanPostProcessor) && !isInfrastructureBean(beanName) &&
|
||||
this.beanFactory.getBeanPostProcessorCount() < this.beanPostProcessorTargetCount) {
|
||||
if (logger.isInfoEnabled()) {
|
||||
logger.info("Bean '" + beanName + "' of type [" + bean.getClass() +
|
||||
logger.info("Bean '" + beanName + "' of type [" + bean.getClass().getName() +
|
||||
"] is not eligible for getting processed by all BeanPostProcessors " +
|
||||
"(for example: not eligible for auto-proxying)");
|
||||
}
|
||||
@@ -333,7 +333,7 @@ class PostProcessorRegistrationDelegate {
|
||||
private boolean isInfrastructureBean(String beanName) {
|
||||
if (beanName != null && this.beanFactory.containsBeanDefinition(beanName)) {
|
||||
BeanDefinition bd = this.beanFactory.getBeanDefinition(beanName);
|
||||
return RootBeanDefinition.ROLE_INFRASTRUCTURE == bd.getRole();
|
||||
return (bd.getRole() == RootBeanDefinition.ROLE_INFRASTRUCTURE);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -159,11 +159,12 @@ public class AsyncAnnotationAdvisor extends AbstractPointcutAdvisor implements B
|
||||
Pointcut cpc = new AnnotationMatchingPointcut(asyncAnnotationType, true);
|
||||
Pointcut mpc = AnnotationMatchingPointcut.forMethodAnnotation(asyncAnnotationType);
|
||||
if (result == null) {
|
||||
result = new ComposablePointcut(cpc).union(mpc);
|
||||
result = new ComposablePointcut(cpc);
|
||||
}
|
||||
else {
|
||||
result.union(cpc).union(mpc);
|
||||
result.union(cpc);
|
||||
}
|
||||
result = result.union(mpc);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user