org.abstracthorizon.extend.support.spring.deployment
Class ApplicationContextModuleXmlParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
      extended by org.abstracthorizon.extend.support.spring.deployment.ApplicationContextModuleXmlParser
All Implemented Interfaces:
BeanDefinitionDocumentReader
Direct Known Subclasses:
JettyWarModuleXmlParser, ServiceApplicationContextModuleXmlParser, TomcatWarModuleXmlParser

public class ApplicationContextModuleXmlParser
extends DefaultBeanDefinitionDocumentReader

This is xml parser that handles <depends-on> tag.

Author:
Daniel Sendula

Field Summary
protected  AbstractApplicationContextModule context
          Context this parser is created for
static String DEPENDS_ON_TAG
           
 
Fields inherited from class org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
ALIAS_ATTRIBUTE, ALIAS_ELEMENT, BEAN_ELEMENT, IMPORT_ELEMENT, logger, NAME_ATTRIBUTE, RESOURCE_ATTRIBUTE
 
Constructor Summary
ApplicationContextModuleXmlParser()
          Empty constructor
 
Method Summary
protected  String getValue(Node node)
          Extracts value from node
protected  void preProcessXml(Element root)
          This method extracts <depends-on> tags and calls modules AbstractApplicationContextModule.processDependencies(List) method with all tags (if any).
 
Methods inherited from class org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
createHelper, extractSource, getReaderContext, importBeanDefinitionResource, parseBeanDefinitions, postProcessXml, processAliasRegistration, processBeanDefinition, registerBeanDefinitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPENDS_ON_TAG

public static final String DEPENDS_ON_TAG
See Also:
Constant Field Values

context

protected AbstractApplicationContextModule context
Context this parser is created for

Constructor Detail

ApplicationContextModuleXmlParser

public ApplicationContextModuleXmlParser()
Empty constructor

Method Detail

preProcessXml

protected void preProcessXml(Element root)
                      throws BeanDefinitionStoreException
This method extracts <depends-on> tags and calls modules AbstractApplicationContextModule.processDependencies(List) method with all tags (if any).

Overrides:
preProcessXml in class DefaultBeanDefinitionDocumentReader
Parameters:
root - root
Throws:
BeanDefinitionStoreException

getValue

protected String getValue(Node node)
Extracts value from node

Parameters:
node - text node
Returns:
string value


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.