org.springframework.integration.config.xml
Class AbstractChannelParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.integration.config.xml.AbstractChannelParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
JmsChannelParser, PointToPointChannelParser, PublishSubscribeChannelParser

public abstract class AbstractChannelParser
extends AbstractBeanDefinitionParser

Base class for channel parsers.


Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
AbstractChannelParser()
           
 
Method Summary
protected abstract  BeanDefinitionBuilder buildBeanDefinition(org.w3c.dom.Element element, ParserContext parserContext)
          Subclasses must implement this method to create the bean definition.
protected  AbstractBeanDefinition parseInternal(org.w3c.dom.Element element, ParserContext parserContext)
           
protected  void registerBeanDefinition(BeanDefinitionHolder definition, BeanDefinitionRegistry registry)
           
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractChannelParser

public AbstractChannelParser()
Method Detail

parseInternal

protected AbstractBeanDefinition parseInternal(org.w3c.dom.Element element,
                                               ParserContext parserContext)
Specified by:
parseInternal in class AbstractBeanDefinitionParser

registerBeanDefinition

protected void registerBeanDefinition(BeanDefinitionHolder definition,
                                      BeanDefinitionRegistry registry)
Overrides:
registerBeanDefinition in class AbstractBeanDefinitionParser

buildBeanDefinition

protected abstract BeanDefinitionBuilder buildBeanDefinition(org.w3c.dom.Element element,
                                                             ParserContext parserContext)
Subclasses must implement this method to create the bean definition. The class must be defined, and any implementation-specific constructor arguments or properties should be configured. This base class will configure the interceptors including the 'datatype' interceptor if the 'datatype' attribute is defined on the channel element.