org.sakaiproject.util
Class ReversiblePropertyOverrideConfigurer

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.PropertyOverrideConfigurer
              extended by org.sakaiproject.util.ReversiblePropertyOverrideConfigurer
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class ReversiblePropertyOverrideConfigurer
extends org.springframework.beans.factory.config.PropertyOverrideConfigurer

This is just a version of Spring's PropertyOverrideConfigurer that lets the bean name be specified Sakai-style before the property name instead of after. (For example "myBean@the.property" instead of "the.property@myBean".)


Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer
DEFAULT_BEAN_NAME_SEPARATOR
 
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
ReversiblePropertyOverrideConfigurer()
           
 
Method Summary
 boolean isBeanNameAtEnd()
           
protected  void processKey(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory, String key, String value)
           
 void setBeanNameAtEnd(boolean beanNameAtEnd)
           
 void setBeanNameSeparator(String beanNameSeparator)
           
 
Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer
applyPropertyValue, hasPropertyOverridesFor, processProperties, setIgnoreInvalidKeys
 
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, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReversiblePropertyOverrideConfigurer

public ReversiblePropertyOverrideConfigurer()
Method Detail

processKey

protected void processKey(org.springframework.beans.factory.config.ConfigurableListableBeanFactory factory,
                          String key,
                          String value)
                   throws org.springframework.beans.BeansException
Overrides:
processKey in class org.springframework.beans.factory.config.PropertyOverrideConfigurer
Throws:
org.springframework.beans.BeansException

setBeanNameSeparator

public void setBeanNameSeparator(String beanNameSeparator)
Overrides:
setBeanNameSeparator in class org.springframework.beans.factory.config.PropertyOverrideConfigurer

isBeanNameAtEnd

public boolean isBeanNameAtEnd()

setBeanNameAtEnd

public void setBeanNameAtEnd(boolean beanNameAtEnd)


Copyright © 2003-2012 The Sakai Foundation. All Rights Reserved.