Class ModifableConfigurablePopulatorPostProcessor
- java.lang.Object
-
- de.hybris.platform.converters.impl.ModifableConfigurablePopulatorPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.config.BeanPostProcessor
public class ModifableConfigurablePopulatorPostProcessor extends java.lang.Object implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessorThis is BeanPostProcessor for modifying populators in existing ModifiableConfigurablePopulaotr beans or any parent in spring declaration.It process all instances of
ConfigurablePopulatorModificationbeans and applies modification stored in those beans to given objects. If for some reasons (lazyInit)ConfigurablePopulatorModificationis not instanciated then this post processor will not get triggered which may lead to some nasty bugs.Forcing this BeanPostProcessor to load all
ConfigurablePopulatorModificationinstances 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.beans.factory.config.ConfigurableListableBeanFactorybeanFactory
-
Constructor Summary
Constructors Constructor Description ModifableConfigurablePopulatorPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize()java.lang.ObjectpostProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName)java.lang.ObjectpostProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
-
-
-
Method Detail
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
initialize
@PostConstruct public void initialize()
-
postProcessBeforeInitialization
public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName) throws org.springframework.beans.BeansException- Specified by:
postProcessBeforeInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInitialization
public java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName) throws org.springframework.beans.BeansException- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-
-