|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyOverrideConfigurer
org.apache.cocoon.spring.configurator.impl.ExtendedPropertyOverrideConfigurer
Our version of the property override configurer which reads properties from the Cocoon spring configuration directory. A property should have the following format: {bean name}/{property name}={value}.
Field Summary | |
protected List |
locations
The locations of the directories where the different property files are located. |
protected ResourceLoader |
resourceLoader
The resource loader used to load the property files. |
protected org.apache.cocoon.configuration.Settings |
settings
The settings object. |
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 | |
ExtendedPropertyOverrideConfigurer()
|
Method Summary | |
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
Read all property files from the specified location and apply the changes. |
void |
setLocations(List list)
Set the directories to search in. |
void |
setResourceLoader(ResourceLoader loader)
Set the resource loader. |
void |
setSettings(org.apache.cocoon.configuration.Settings object)
Set the settings. |
Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer |
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys |
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 |
Field Detail |
protected List locations
protected ResourceLoader resourceLoader
protected org.apache.cocoon.configuration.Settings settings
Constructor Detail |
public ExtendedPropertyOverrideConfigurer()
Method Detail |
public void setLocations(List list)
list
- A list of string pointing to directories.public void setSettings(org.apache.cocoon.configuration.Settings object)
object
- The settings object.public void setResourceLoader(ResourceLoader loader)
loader
- The new resource loader.public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException
BeansException
PropertyResourceConfigurer.postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |