Browse Source

added bean type to post-processing log statement (SPR-7524)

pull/1234/head
Juergen Hoeller 14 years ago
parent
commit
479b4c1b84
  1. 7
      org.springframework.context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

7
org.springframework.context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

@ -1326,11 +1326,12 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader @@ -1326,11 +1326,12 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
}
public Object postProcessAfterInitialization(Object bean, String beanName) {
if (!(bean instanceof BeanPostProcessor) &&
if (bean != null && !(bean instanceof BeanPostProcessor) &&
this.beanFactory.getBeanPostProcessorCount() < this.beanPostProcessorTargetCount) {
if (logger.isInfoEnabled()) {
logger.info("Bean '" + beanName + "' is not eligible for getting processed by all " +
"BeanPostProcessors (for example: not eligible for auto-proxying)");
logger.info("Bean '" + beanName + "' of type [" + bean.getClass() +
"] is not eligible for getting processed by all BeanPostProcessors " +
"(for example: not eligible for auto-proxying)");
}
}
return bean;

Loading…
Cancel
Save