public class RuntimeSystemPropertiesSetter extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.core.PriorityOrdered
This class is used by the Spring framework to inject system properties into the runtime environment (e.g.: alfresco.jmx.dir). The motivation for this is that certain values must be set within spring must be computed in advance for org.springframework.beans.factory.config.PropertyPlaceholderConfigurer to work properly.
setJvmProperties(Map)
Constructor and Description |
---|
RuntimeSystemPropertiesSetter() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setJvmProperties(Map<String,String> jvmProperties)
Set the properties that will get pushed into the JVM system properties.
|
void |
setOrder(int order) |
public void setJvmProperties(Map<String,String> jvmProperties)
jvmProperties
- properties to set if they are not already present in the VMpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
public void setOrder(int order)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
Copyright © 2005–2017 Alfresco Software. All rights reserved.