ColdSpring 2.0 - Narwhal

coldspring.beans.factory.config
Interface BeanPostProcessor

WEB-INF.cftags.interface
        extended by coldspring.beans.factory.config.BeanPostProcessor
All Known Implementing Classes:
BeanFactoryAwarePostProcessor , BeanNameAwarePostProcessor
All Known Subinterfaces:
InstantiationAwareBeanPostProcessor

public interface BeanPostProcessor
extends WEB-INF.cftags.interface

Factory hook that allows for custom modification of new bean instances, e.g. checking for marker interfaces or wrapping them with proxies.
Typically, post-processors that populate beans via marker interfaces or the like will implement postProcessBeforeInitialization(bean, beanName), while post-processors that wrap beans with proxies will normally implement postProcessAfterInitialization(bean, beanName).


Method Summary
 any postProcessAfterInitialization(any bean, string beanName)
          Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks (like a custom init-method)
 any postProcessBeforeInitialization(any bean, string beanName)
          Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks (like a custom init-method)
 
Methods inherited from class WEB-INF.cftags.interface
 

Method Detail

postProcessAfterInitialization

public any postProcessAfterInitialization(any bean, string beanName)
Apply this BeanPostProcessor to the given new bean instance after any bean initialization callbacks (like a custom init-method). The bean will already be populated with property values. The returned bean instance may be a wrapper around the original. returns the bean instance to use, either the original or a wrapped one; if null, no subsequent BeanPostProcessors will be invoked

Parameters:
bean - the new bean instance
beanName - the name of the bean

postProcessBeforeInitialization

public any postProcessBeforeInitialization(any bean, string beanName)
Apply this BeanPostProcessor to the given new bean instance before any bean initialization callbacks (like a custom init-method). The bean will already be populated with property values. The returned bean instance may be a wrapper around the original. returns the bean instance to use, either the original or a wrapped one; if null, no subsequent BeanPostProcessors will be invoked

Parameters:
bean - the new bean instance
beanName - the name of the bean

ColdSpring 2.0 - Narwhal