Class SetSystemPropertyAfterInit

java.lang.Object
com.broadleafcommerce.enterprise.core.config.SetSystemPropertyAfterInit
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class SetSystemPropertyAfterInit extends Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.core.PriorityOrdered, org.springframework.context.ApplicationContextAware
Have ability to manipulate with properties before beans that uses those properties will initialize Implements BeanPostProcessor because it will force spring to load this bean as early as possible, which is required for setting system property for HSQLDB before class loader loads HsqlDatabaseProperties(from HsqlDB) class where static initializer will read system property
  • Field Details

  • Constructor Details

    • SetSystemPropertyAfterInit

      public SetSystemPropertyAfterInit()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • 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