org.kuali.student.common.util
Class ModPropertyPlaceholderConfigurer

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.kuali.student.common.util.ModPropertyPlaceholderConfigurer
All Implemented Interfaces:
BeanFactoryAware, BeanNameAware, BeanFactoryPostProcessor, InitializingBean, Ordered, PriorityOrdered

public class ModPropertyPlaceholderConfigurer
extends PropertyPlaceholderConfigurer
implements InitializingBean


Nested Class Summary
 class ModPropertyPlaceholderConfigurer.PlaceholderResolvingStringValueResolver
          BeanDefinitionVisitor that resolves placeholders in String values, delegating to the parseStringValue method of the containing class.
 
Field Summary
private  BeanFactory beanFactory
           
private  String beanName
           
private  String customConfigFileLocation
           
private  String customConfigSystemProperty
           
private  Resource[] locations
           
private  String nullValue
           
 
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
 
Constructor Summary
ModPropertyPlaceholderConfigurer()
           
 
Method Summary
 void afterPropertiesSet()
           
 String getCustomConfigFileLocation()
           
 String getCustomConfigSystemProperty()
           
protected  void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props)
           
 void setBeanFactory(BeanFactory beanFactory)
           
 void setBeanName(String beanName)
           
 void setCustomConfigFileLocation(String customConfigFileLocation)
           
 void setCustomConfigSystemProperty(String customConfigSystemProperty)
           
 void setLocations(Resource[] locations)
           
 void setNullValue(String nullValue)
           
 
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
parseStringValue, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName
 
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
convertProperties, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
 
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setProperties, setPropertiesArray, setPropertiesPersister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customConfigSystemProperty

private String customConfigSystemProperty

customConfigFileLocation

private String customConfigFileLocation

locations

private Resource[] locations

beanName

private String beanName

beanFactory

private BeanFactory beanFactory

nullValue

private String nullValue
Constructor Detail

ModPropertyPlaceholderConfigurer

public ModPropertyPlaceholderConfigurer()
Method Detail

getCustomConfigSystemProperty

public String getCustomConfigSystemProperty()

setCustomConfigSystemProperty

public void setCustomConfigSystemProperty(String customConfigSystemProperty)

setLocations

public void setLocations(Resource[] locations)
Overrides:
setLocations in class PropertiesLoaderSupport

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setBeanName

public void setBeanName(String beanName)
Specified by:
setBeanName in interface BeanNameAware
Overrides:
setBeanName in class PropertyPlaceholderConfigurer

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
Specified by:
setBeanFactory in interface BeanFactoryAware
Overrides:
setBeanFactory in class PropertyPlaceholderConfigurer

setNullValue

public void setNullValue(String nullValue)
Overrides:
setNullValue in class PropertyPlaceholderConfigurer

processProperties

protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess,
                                 Properties props)
                          throws BeansException
Overrides:
processProperties in class PropertyPlaceholderConfigurer
Throws:
BeansException

getCustomConfigFileLocation

public String getCustomConfigFileLocation()

setCustomConfigFileLocation

public void setCustomConfigFileLocation(String customConfigFileLocation)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.