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

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3642 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller 2010-09-06 20:06:48 +00:00
parent 68597b9359
commit 0a295603db
1 changed files with 4 additions and 3 deletions

View File

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