org.abstracthorizon.extend.support.spring.service
Class ServiceApplicationContextModuleXmlParser

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

public class ServiceApplicationContextModuleXmlParser
extends ApplicationContextModuleXmlParser

This is xml parser that handles <service> tag.

Author:
Daniel Sendula

Field Summary
static String BEAN_TAG
           
static String CREATE_METHOD_TAG
           
static String DESTROY_METHOD_TAG
           
static String ID_ATTRIBUTE
           
static String NAME_ATTRIBUTE
           
static String SERVICE_TAG
           
static String START_METHOD_TAG
           
static String STOP_METHOD_TAG
           
 
Fields inherited from class org.abstracthorizon.extend.support.spring.deployment.ApplicationContextModuleXmlParser
context, DEPENDS_ON_TAG
 
Fields inherited from class org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
ALIAS_ATTRIBUTE, ALIAS_ELEMENT, BEAN_ELEMENT, IMPORT_ELEMENT, logger, RESOURCE_ATTRIBUTE
 
Constructor Summary
ServiceApplicationContextModuleXmlParser()
          Empty constructor
 
Method Summary
protected  void inspectNode(ServiceApplicationContextModule context, Node node)
          This method checks given node if <service> tag is present.
protected  void preProcessXml(Element root)
          This method processes all tags in search for <service> tag.
protected  void processNode(ServiceApplicationContextModule context, Node node, String name)
          Processes <service> tag node.
 
Methods inherited from class org.abstracthorizon.extend.support.spring.deployment.ApplicationContextModuleXmlParser
getValue
 
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

BEAN_TAG

public static final String BEAN_TAG
See Also:
Constant Field Values

SERVICE_TAG

public static final String SERVICE_TAG
See Also:
Constant Field Values

NAME_ATTRIBUTE

public static final String NAME_ATTRIBUTE
See Also:
Constant Field Values

ID_ATTRIBUTE

public static final String ID_ATTRIBUTE
See Also:
Constant Field Values

CREATE_METHOD_TAG

public static final String CREATE_METHOD_TAG
See Also:
Constant Field Values

START_METHOD_TAG

public static final String START_METHOD_TAG
See Also:
Constant Field Values

STOP_METHOD_TAG

public static final String STOP_METHOD_TAG
See Also:
Constant Field Values

DESTROY_METHOD_TAG

public static final String DESTROY_METHOD_TAG
See Also:
Constant Field Values
Constructor Detail

ServiceApplicationContextModuleXmlParser

public ServiceApplicationContextModuleXmlParser()
Empty constructor

Method Detail

preProcessXml

protected void preProcessXml(Element root)
                      throws BeanDefinitionStoreException
This method processes all tags in search for <service> tag.

Overrides:
preProcessXml in class ApplicationContextModuleXmlParser
Parameters:
root - root element of DOM parsed XML.
Throws:
BeanDefinitionStoreException

inspectNode

protected void inspectNode(ServiceApplicationContextModule context,
                           Node node)
This method checks given node if <service> tag is present.

Parameters:
context - service module
node - node to be checked

processNode

protected void processNode(ServiceApplicationContextModule context,
                           Node node,
                           String name)
Processes <service> tag node.

Parameters:
context - service module
node - service tag node
name - name of the bean containing service tag


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