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 Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()postProcessAfterInitialization(Object bean, String beanName) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Field Details
-
HSQLDB_METHOD_CLASS_NAMES
- See Also:
-
-
Constructor Details
-
SetSystemPropertyAfterInit
public SetSystemPropertyAfterInit()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitializationin interfaceorg.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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-