org.apache.cocoon.spring.configurator.impl
Class ChildSettingsBeanFactoryPostProcessor
java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor
org.apache.cocoon.spring.configurator.impl.ChildSettingsBeanFactoryPostProcessor
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, BeanFactoryPostProcessor, FactoryBean, ResourceLoaderAware, Ordered, PriorityOrdered, ServletContextAware
public class ChildSettingsBeanFactoryPostProcessor
- extends AbstractSettingsBeanFactoryPostProcessor
This is a bean factory post processor which sets up a child settings object.
The settings object is created by reading several property files and merging of
the values. If there is more than one definition for a property, the last one wins.
The property files are read in the following order:
1) Property provider (if configured in the bean factory)
2) Add properties from configured directories AbstractSettingsBeanFactoryPostProcessor.directories
.
3) Add additional properties configured at AbstractSettingsBeanFactoryPostProcessor.additionalProperties
4) System properties
- Since:
- 1.0
- Version:
- $Id: ChildSettingsBeanFactoryPostProcessor.java 587750 2007-10-24 02:35:22Z vgritsenko $
Field Summary |
protected String |
name
Unique name for this child settings context. |
Methods inherited from class org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor |
createMutableSettingsInstance, createSettings, dumpSettings, getObject, getObjectType, getParentSettings, getResourceLoader, getSystemProperty, getSystemProperty, init, isSingleton, postInit, preInit, processProperties, resolvePlaceholder, setAdditionalProperties, setBeanFactory, setDirectories, setResourceFilter, setResourceLoader, setServletContext |
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
parseStringValue, resolvePlaceholder, resolveSystemProperty, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
protected String name
- Unique name for this child settings context.
ChildSettingsBeanFactoryPostProcessor
public ChildSettingsBeanFactoryPostProcessor()
setName
public void setName(String newName)
- Set the unique name for this settings context.
- Parameters:
newName
- The new name.
getRunningMode
protected String getRunningMode()
- Description copied from class:
AbstractSettingsBeanFactoryPostProcessor
- Get the running mode.
This method should be implemented by subclasses.
- Specified by:
getRunningMode
in class AbstractSettingsBeanFactoryPostProcessor
- See Also:
AbstractSettingsBeanFactoryPostProcessor.getRunningMode()
getNameForPropertyProvider
protected String getNameForPropertyProvider()
- Overrides:
getNameForPropertyProvider
in class AbstractSettingsBeanFactoryPostProcessor
- See Also:
AbstractSettingsBeanFactoryPostProcessor.getNameForPropertyProvider()
Copyright © 1999-2009 The Apache Software Foundation. All Rights Reserved.