Class BackofficeIndexedPropertyPopulatorLoader

java.lang.Object
com.hybris.backoffice.solrsearch.populators.BackofficeIndexedPropertyPopulatorLoader
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware

public class BackofficeIndexedPropertyPopulatorLoader extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanFactoryAware
This bean loads defaultBackofficeIndexedPropertyPopulator (if needed) and add it to bean indexedPropertyConverter collection of populators. It can't be done by only spring configuration because in commerce is extension that extend this in spring configuration, but backoffice do not know about this extension. If we try to do it in bean configuration one extension will overwrite changes in second extension. So it have to work with both scenarios: only backoffice and with whole commerce.
  • Constructor Details

    • BackofficeIndexedPropertyPopulatorLoader

      public BackofficeIndexedPropertyPopulatorLoader()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException