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

java.lang.Object
  extended byorg.apache.cocoon.spring.configurator.impl.AbstractElementParser
      extended byorg.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
ChildSettingsElementParser, SettingsElementParser

public abstract class AbstractSettingsElementParser
extends AbstractElementParser

Abstract class for the settings element parsers.

Since:
1.0
Version:
$Id: AbstractSettingsElementParser.java 587750 2007-10-24 02:35:22Z vgritsenko $
See Also:
ChildSettingsElementParser, SettingsElementParser

Field Summary
 
Fields inherited from class org.apache.cocoon.spring.configurator.impl.AbstractElementParser
logger
 
Constructor Summary
AbstractSettingsElementParser()
           
 
Method Summary
protected abstract  void createSettingsBeanFactoryPostProcessor(Element element, ParserContext parserContext, String runningMode)
          Create and register the settings bean factory post processor.
protected  Properties getAdditionalProperties(Element childSettingsElement)
          Get additional properties.
protected  List getBeanIncludes(Element childSettingsElement)
          Get additional includes of bean configurations.
protected  List getBeanPropertyOverrideIncludes(Element settingsElement)
          Return the includes for the property override configuration
protected  List getPropertyIncludes(Element childSettingsElement)
          Get additonal includes of property directories.
protected abstract  String getRunningMode(Element e)
          Get the current running mode
protected  void handleBeanInclude(ParserContext parserContext, String path, boolean optional)
          Handle include for spring bean configurations.
protected  void handleImport(ParserContext parserContext, String uri)
           
 BeanDefinition parse(Element element, ParserContext parserContext)
           
protected  void registerComponents(Element settingsElement, ParserContext parserContext)
          This method can be used for subclasses to register additional components.
protected  void registerPropertyOverrideConfigurer(ParserContext parserContext, List locations)
          Register a property placeholder configurer.
 
Methods inherited from class org.apache.cocoon.spring.configurator.impl.AbstractElementParser
addComponent, addComponent, createBeanDefinition, createBeanDefinition, getAttributeValue, getChildElements, register, register, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSettingsElementParser

public AbstractSettingsElementParser()
Method Detail

getRunningMode

protected abstract String getRunningMode(Element e)
Get the current running mode


createSettingsBeanFactoryPostProcessor

protected abstract void createSettingsBeanFactoryPostProcessor(Element element,
                                                               ParserContext parserContext,
                                                               String runningMode)
Create and register the settings bean factory post processor.


getPropertyIncludes

protected List getPropertyIncludes(Element childSettingsElement)
Get additonal includes of property directories.


getAdditionalProperties

protected Properties getAdditionalProperties(Element childSettingsElement)
Get additional properties.


getBeanIncludes

protected List getBeanIncludes(Element childSettingsElement)
Get additional includes of bean configurations.


getBeanPropertyOverrideIncludes

protected List getBeanPropertyOverrideIncludes(Element settingsElement)
Return the includes for the property override configuration


parse

public BeanDefinition parse(Element element,
                            ParserContext parserContext)
See Also:
BeanDefinitionParser.parse(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext)

registerComponents

protected void registerComponents(Element settingsElement,
                                  ParserContext parserContext)
This method can be used for subclasses to register additional components.


handleBeanInclude

protected void handleBeanInclude(ParserContext parserContext,
                                 String path,
                                 boolean optional)
                          throws Exception
Handle include for spring bean configurations.

Throws:
Exception

handleImport

protected void handleImport(ParserContext parserContext,
                            String uri)

registerPropertyOverrideConfigurer

protected void registerPropertyOverrideConfigurer(ParserContext parserContext,
                                                  List locations)
Register a property placeholder configurer. The configurer will read all *.properties files from the specified locations.

Parameters:
parserContext -
locations -


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.