| org.springframework.beans.factory.config.BeanPostProcessor
All known Subclasses: org.springframework.web.portlet.context.PortletContextAwareProcessor, org.springframework.aop.framework.adapter.AdvisorAdapterRegistrationManager, org.springframework.web.context.support.ServletContextAwareProcessor, org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor, org.springframework.context.support.ApplicationContextAwareProcessor,
BeanPostProcessor | public interface BeanPostProcessor (Code) | | Allows for custom modification of new bean instances, e.g.
checking for marker interfaces or wrapping them with proxies.
Application contexts can auto-detect BeanPostProcessor beans in their
bean definitions and apply them before any other beans get created.
Plain bean factories allow for programmatic registration of post-processors.
Typically, post-processors that populate beans via marker interfaces
or the like will implement postProcessBeforeInitialization, and post-processors
that wrap beans with proxies will normally implement postProcessAfterInitialization.
author: Juergen Hoeller since: 10.10.2003 See Also: InstantiationAwareBeanPostProcessor See Also: DestructionAwareBeanPostProcessor See Also: ConfigurableBeanFactory.addBeanPostProcessor See Also: BeanFactoryPostProcessor |
Method Summary | |
Object | postProcessAfterInitialization(Object bean, String beanName) Apply this BeanPostProcessor to the given new bean instance after any bean
initialization callbacks (like InitializingBean's afterPropertiesSet
or a custom init-method). | Object | postProcessBeforeInitialization(Object bean, String beanName) Apply this BeanPostProcessor to the given new bean instance before any bean
initialization callbacks (like InitializingBean's afterPropertiesSet
or a custom init-method). |
|
|