Typically used to suppress default instantiation for specific target beans, for example to create proxies with special TargetSources (pooling targets, lazily initializing targets, etc).
| Method Summary | |
|---|---|
| Object |
Apply this BeanPostProcessor before the target bean gets instantiated. |
| Methods inherited from org.springframework.beans.factory.configBeanPostProcessor |
|---|
If a non-null object is returned by this method, the bean creation process will be short-circuited. The returned bean object will not be processed any further; in particular, no further BeanPostProcessor callbacks will be applied to it. This mechanism is mainly intended for exposing a proxy instead of an actual target bean.
This callback will only be applied to bean definitions with a bean class. In particular, it will not be applied to beans with a "factory-method".