public class SystemPropertiesFactoryBean
extends org.springframework.beans.factory.config.PropertiesFactoryBean
PropertiesFactoryBean, but overrides or augments the resulting property set with values
from VM system properties. As with the Spring PropertyPlaceholderConfigurer the following modes are
supported:
PropertiesLoaderSupport.setProperties(Properties) or PropertiesLoaderSupport.setLocations(org.springframework.core.io.Resource[]) or
their names have been included explicitly in the set passed to SystemPropertiesFactoryBean.setSystemProperties(Set).| Constructor and Description |
|---|
SystemPropertiesFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Properties |
mergeProperties() |
protected void |
resolveMergedProperty(java.lang.String systemProperty,
java.util.Properties props)
Override hook.
|
void |
setSystemProperties(java.util.Set systemProperties)
Set the names of the properties that can be considered for overriding.
|
void |
setSystemPropertiesMode(int systemPropertiesMode)
Set how to check system properties.
|
void |
setSystemPropertiesModeName(java.lang.String constantName)
Set the system property mode by the name of the corresponding constant, e.g.
|
afterPropertiesSet, createInstance, createProperties, getObject, getObjectType, isSingleton, setSingletonpublic void setSystemPropertiesModeName(java.lang.String constantName)
throws java.lang.IllegalArgumentException
constantName - name of the constantjava.lang.IllegalArgumentException - if an invalid constant was specifiedSystemPropertiesFactoryBean.setSystemPropertiesMode(int)public void setSystemPropertiesMode(int systemPropertiesMode)
PropertyPlaceholderConfigurer.setSystemPropertiesMode(int)public void setSystemProperties(java.util.Set systemProperties)
systemProperties - a set of properties that can be fetched from the system propertiesprotected java.util.Properties mergeProperties()
throws java.io.IOException
mergeProperties in class org.springframework.core.io.support.PropertiesLoaderSupportjava.io.IOExceptionprotected void resolveMergedProperty(java.lang.String systemProperty,
java.util.Properties props)
systemProperty - props - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.