public class ModifableConfigurablePopulatorPostProcessor
extends java.lang.Object
It process all instances of ConfigurablePopulatorModification beans and applies modification stored in those
beans to given objects. If for some reasons (lazyInit) ConfigurablePopulatorModification is not instanciated
then this post processor will not get triggered which may lead to some nasty bugs.
Forcing this BeanPostProcessor to load all ConfigurablePopulatorModification instances during its
initialization (via dependency injection or by extracting them form ApplicationContext) will lead to change in order
in which beans are intialized. Especially some beans will be instanciated before other BeanPostProcessors which may
highly affect stability of the system, so its a bad idea.
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurableListableBeanFactory |
beanFactory |
| Constructor and Description |
|---|
ModifableConfigurablePopulatorPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize() |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
void |
setBeanFactory(BeanFactory beanFactory) |
public ModifableConfigurablePopulatorPostProcessor()
public void setBeanFactory(BeanFactory beanFactory)
throws BeansException
BeansException@PostConstruct public void initialize()
public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
throws BeansException
BeansExceptionpublic java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
throws BeansException
BeansExceptionCopyright © 2018 SAP SE. All Rights Reserved.