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.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor, 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, org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
- 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.lang.reflect.Constructor[] |
determineCandidateConstructors(java.lang.Class beanClass,
java.lang.String beanName)
|
java.lang.Object |
getEarlyBeanReference(java.lang.Object bean,
java.lang.String beanName)
|
java.util.Properties |
getProperties()
Returns the Properties loaded by this configurer. |
java.lang.String |
getProperty(java.lang.String key)
Returns a single property. |
java.lang.Object |
postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
|
boolean |
postProcessAfterInstantiation(java.lang.Object bean,
java.lang.String beanName)
|
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
|
java.lang.Object |
postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
|
java.lang.Object |
postProcessBeforeInstantiation(java.lang.Class beanClass,
java.lang.String beanName)
|
org.springframework.beans.PropertyValues |
postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
java.beans.PropertyDescriptor[] pds,
java.lang.Object bean,
java.lang.String beanName)
|
java.lang.Class |
predictBeanType(java.lang.Class beanClass,
java.lang.String beanName)
|
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, setNullValue, 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
postProcessAfterInstantiation
public boolean postProcessAfterInstantiation(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
- Throws:
org.springframework.beans.BeansException
predictBeanType
public java.lang.Class predictBeanType(java.lang.Class beanClass,
java.lang.String beanName)
- Specified by:
predictBeanType in interface org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
determineCandidateConstructors
public java.lang.reflect.Constructor[] determineCandidateConstructors(java.lang.Class beanClass,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
determineCandidateConstructors in interface org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
- Throws:
org.springframework.beans.BeansException
getEarlyBeanReference
public java.lang.Object getEarlyBeanReference(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
getEarlyBeanReference in interface org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
- Throws:
org.springframework.beans.BeansException
postProcessBeforeInstantiation
public java.lang.Object postProcessBeforeInstantiation(java.lang.Class beanClass,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInstantiation in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
- Throws:
org.springframework.beans.BeansException
postProcessPropertyValues
public org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
java.beans.PropertyDescriptor[] pds,
java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessPropertyValues in interface org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
- Throws:
org.springframework.beans.BeansException
postProcessBeforeInitialization
public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
postProcessAfterInitialization
public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
Copyright © 2009 Openmind. All Rights Reserved.