it.openutils.deployment.spring
Class EnvironmentPropertyConfigurer
java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
it.openutils.deployment.spring.EnvironmentPropertyConfigurer
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered
- Direct Known Subclasses:
- DatabaseEnvironmentPropertyConfigurer
public class EnvironmentPropertyConfigurer
- extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
- implements org.springframework.context.ApplicationContextAware
- Version:
- $Id: $
- Author:
- fgiust
|
Field Summary |
protected java.util.Properties |
properties
Cached properties (super field is private). |
| Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
| Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
logger, XML_FILE_EXTENSION |
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
|
Method Summary |
java.util.Properties |
getProperties()
Returns the Properties loaded by this configurer. |
java.lang.String |
getProperty(java.lang.String key)
Returns a single property. |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setDefaultEnvironment(java.lang.String defaultEnvironment)
Deprecated. use defaultLocation |
void |
setFileLocation(java.lang.String fileLocation)
Setter for fileLocation. |
void |
setInherit(boolean inherit)
Sets the inherit. |
| Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
| Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer |
convertProperties, convertPropertyValue, getOrder, setOrder |
| Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected java.util.Properties properties
- Cached properties (super field is private).
EnvironmentPropertyConfigurer
public EnvironmentPropertyConfigurer()
setFileLocation
public void setFileLocation(java.lang.String fileLocation)
- Setter for
fileLocation.
- Parameters:
fileLocation - The fileLocation to set.
setInherit
public void setInherit(boolean inherit)
- Sets the inherit.
- Parameters:
inherit - the inherit to set
setDefaultEnvironment
@Deprecated
public void setDefaultEnvironment(java.lang.String defaultEnvironment)
- Deprecated. use defaultLocation
- Setter for
defaultEnvironment.
- Parameters:
defaultEnvironment - The defaultEnvironment to set.
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
-
- Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor- Overrides:
postProcessBeanFactory in class org.springframework.beans.factory.config.PropertyResourceConfigurer
- Throws:
org.springframework.beans.BeansException
getProperties
public java.util.Properties getProperties()
- Returns the Properties loaded by this configurer.
- Returns:
- Properties
getProperty
public java.lang.String getProperty(java.lang.String key)
- Returns a single property.
- Parameters:
key - Property key
- Returns:
- property value or
null if not found.
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
Copyright © 2008 Openmind. All Rights Reserved.