org.springframework.context.support
class: AbstractApplicationContext.BeanPostProcessorChecker [javadoc |
source]
java.lang.Object
org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker
All Implemented Interfaces:
BeanPostProcessor
BeanPostProcessor that logs an info message when a bean is created during
BeanPostProcessor instantiation, i.e. when a bean is not eligible for
getting processed by all BeanPostProcessors.
| Method from org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker Detail: |
public Object postProcessAfterInitialization(Object bean,
String beanName) {
if (!(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)");
}
}
return bean;
}
|
public Object postProcessBeforeInitialization(Object bean,
String beanName) {
return bean;
}
|