org.apache.cocoon.spring.configurator.impl
Class ChildSettingsBeanFactoryPostProcessor

java.lang.Object
  extended byorg.springframework.core.io.support.PropertiesLoaderSupport
      extended byorg.springframework.beans.factory.config.PropertyResourceConfigurer
          extended byorg.springframework.beans.factory.config.PropertyPlaceholderConfigurer
              extended byorg.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor
                  extended byorg.apache.cocoon.spring.configurator.impl.ChildSettingsBeanFactoryPostProcessor
All Implemented Interfaces:
BeanFactoryAware, BeanFactoryPostProcessor, BeanNameAware, FactoryBean, Ordered, PriorityOrdered, ResourceLoaderAware, 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 $

Nested Class Summary
 
Nested classes inherited from class org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor
AbstractSettingsBeanFactoryPostProcessor.CocoonSettingsResolvingBeanDefinitionVisitor
 
Field Summary
protected  String name
          Unique name for this child settings context.
 
Fields inherited from class org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor
additionalProperties, beanFactory, directories, logger, resourceFilter, resourceLoader, servletContext, settings
 
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
XML_FILE_EXTENSION
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
ChildSettingsBeanFactoryPostProcessor()
           
 
Method Summary
protected  String getNameForPropertyProvider()
           
protected  String getRunningMode()
          Get the running mode.
 void setName(String newName)
          Set the unique name for this 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 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
 

Field Detail

name

protected String name
Unique name for this child settings context.

Constructor Detail

ChildSettingsBeanFactoryPostProcessor

public ChildSettingsBeanFactoryPostProcessor()
Method Detail

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-2008 The Apache Software Foundation. All Rights Reserved.