org.owasp.esapi.contrib.spring.encryptedproperty
Class EncryptedPropertyPlaceholderConfigurer

java.lang.Object
  extended by org.springframework.core.io.support.PropertiesLoaderSupport
      extended by org.springframework.beans.factory.config.PropertyResourceConfigurer
          extended by org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
              extended by org.owasp.esapi.contrib.spring.encryptedproperty.EncryptedPropertyPlaceholderConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class EncryptedPropertyPlaceholderConfigurer
extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, 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
 
Constructor Summary
EncryptedPropertyPlaceholderConfigurer()
           
 
Method Summary
protected  void loadProperties(java.util.Properties props)
          Load properties into the given instance.
protected  java.util.Properties mergeProperties()
          Return a merged Properties instance containing both the loaded properties and properties set on this FactoryBean.
 void setLocalOverride(boolean localOverride)
          Set whether local properties override properties from files.
 void setProperties(java.util.Properties properties)
          Set local properties, e.g.
 void setPropertiesArray(java.util.Properties[] propertiesArray)
          Set local properties, e.g.
 
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName, setValueSeparator
 
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
convertProperties, convertProperty, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
 
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
setFileEncoding, setIgnoreResourceNotFound, setLocation, setLocations, setPropertiesPersister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedPropertyPlaceholderConfigurer

public EncryptedPropertyPlaceholderConfigurer()
Method Detail

setLocalOverride

public void setLocalOverride(boolean localOverride)
Set whether local properties override properties from files.

Default is "false": Properties from files override local defaults. Can be switched to "true" to let local properties override defaults from files.

Overrides:
setLocalOverride in class org.springframework.core.io.support.PropertiesLoaderSupport

setProperties

public void setProperties(java.util.Properties properties)
Set local properties, e.g. via the "props" tag in XML bean definitions. These can be considered defaults, to be overridden by properties loaded from files.

Overrides:
setProperties in class org.springframework.core.io.support.PropertiesLoaderSupport

setPropertiesArray

public void setPropertiesArray(java.util.Properties[] propertiesArray)
Set local properties, e.g. via the "props" tag in XML bean definitions, allowing for merging multiple properties sets into one.

Overrides:
setPropertiesArray in class org.springframework.core.io.support.PropertiesLoaderSupport

mergeProperties

protected java.util.Properties mergeProperties()
                                        throws java.io.IOException
Return a merged Properties instance containing both the loaded properties and properties set on this FactoryBean.

Overrides:
mergeProperties in class org.springframework.core.io.support.PropertiesLoaderSupport
Throws:
java.io.IOException

loadProperties

protected void loadProperties(java.util.Properties props)
                       throws java.io.IOException
Load properties into the given instance.

Overrides:
loadProperties in class org.springframework.core.io.support.PropertiesLoaderSupport
Parameters:
props - the Properties instance to load into
Throws:
java.io.IOException - in case of I/O errors
See Also:
PropertiesLoaderSupport.setLocations(org.springframework.core.io.Resource[])


Copyright © 2011 The Open Web Application Security Project (OWASP). All Rights Reserved.