public class RuntimeSystemPropertiesSetter
extends java.lang.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.
#setProperties(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(java.util.Map jvmProperties)
Set the properties that will get pushed into the JVM system properties.
|
void |
setOrder(int order) |
public void setJvmProperties(java.util.Map 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.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic void setOrder(int order)
public int getOrder()
getOrder in interface org.springframework.core.OrderedCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.