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

java.lang.Object
  extended byorg.apache.cocoon.spring.configurator.impl.AbstractElementParser
      extended byorg.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser
          extended byorg.apache.cocoon.spring.configurator.impl.SettingsElementParser
All Implemented Interfaces:
BeanDefinitionParser

public class SettingsElementParser
extends AbstractSettingsElementParser

Add a bean definition for the settings object to the bean factory.

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

Field Summary
static String EXTRACT_BLOCK_RESOURCES_ATTR
          The name of the configuration attribute to specify if block resources should be extracted.
static String READ_FROM_CLASSPATH_ATTR
          The name of the configuration attribute to specify if configurations are read from the classpath.
static String READ_FROM_GLOBAL_LOCATION_ATTR
          The name of the configuration attribute to specify if configurations are read from the global location.
static String RUNNING_MODE_ATTR
          The name of the configuration attribute to specify the running mode.
 
Fields inherited from class org.apache.cocoon.spring.configurator.impl.AbstractElementParser
logger
 
Constructor Summary
SettingsElementParser()
           
 
Method Summary
protected  void createSettingsBeanFactoryPostProcessor(Element element, ParserContext parserContext, String runningMode)
          Create and register the settings bean factory post processor.
protected  List getBeanIncludes(Element settingsElement)
          Get additional includes of bean configurations.
protected  List getBeanPropertyOverrideIncludes(Element settingsElement)
          Return the includes for the property override configuration
protected  String getRunningMode(Element e)
          Get the current running mode
protected  void registerComponents(Element settingsElement, ParserContext parserContext)
          This method can be used for subclasses to register additional components.
 
Methods inherited from class org.apache.cocoon.spring.configurator.impl.AbstractSettingsElementParser
getAdditionalProperties, getPropertyIncludes, handleBeanInclude, handleImport, parse, registerPropertyOverrideConfigurer
 
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
 

Field Detail

RUNNING_MODE_ATTR

public static final String RUNNING_MODE_ATTR
The name of the configuration attribute to specify the running mode.

See Also:
Constant Field Values

READ_FROM_CLASSPATH_ATTR

public static final String READ_FROM_CLASSPATH_ATTR
The name of the configuration attribute to specify if configurations are read from the classpath.

See Also:
Constant Field Values

READ_FROM_GLOBAL_LOCATION_ATTR

public static final String READ_FROM_GLOBAL_LOCATION_ATTR
The name of the configuration attribute to specify if configurations are read from the global location.

See Also:
Constant Field Values

EXTRACT_BLOCK_RESOURCES_ATTR

public static final String EXTRACT_BLOCK_RESOURCES_ATTR
The name of the configuration attribute to specify if block resources should be extracted.

See Also:
Constant Field Values
Constructor Detail

SettingsElementParser

public SettingsElementParser()
Method Detail

createSettingsBeanFactoryPostProcessor

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

Specified by:
createSettingsBeanFactoryPostProcessor in class AbstractSettingsElementParser

getRunningMode

protected String getRunningMode(Element e)
Description copied from class: AbstractSettingsElementParser
Get the current running mode

Specified by:
getRunningMode in class AbstractSettingsElementParser
See Also:
AbstractSettingsElementParser.getRunningMode(org.w3c.dom.Element)

getBeanIncludes

protected List getBeanIncludes(Element settingsElement)
Description copied from class: AbstractSettingsElementParser
Get additional includes of bean configurations.

Overrides:
getBeanIncludes in class AbstractSettingsElementParser
See Also:
AbstractSettingsElementParser.getBeanIncludes(org.w3c.dom.Element)

getBeanPropertyOverrideIncludes

protected List getBeanPropertyOverrideIncludes(Element settingsElement)
Description copied from class: AbstractSettingsElementParser
Return the includes for the property override configuration

Overrides:
getBeanPropertyOverrideIncludes in class AbstractSettingsElementParser
See Also:
AbstractSettingsElementParser.getBeanPropertyOverrideIncludes(org.w3c.dom.Element)

registerComponents

protected void registerComponents(Element settingsElement,
                                  ParserContext parserContext)
Description copied from class: AbstractSettingsElementParser
This method can be used for subclasses to register additional components.

Overrides:
registerComponents in class AbstractSettingsElementParser
See Also:
AbstractSettingsElementParser.registerComponents(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext)


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