Spring Integration

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:
org.springframework.beans.factory.xml.BeanDefinitionParser
Direct Known Subclasses:
AmqpChannelParser, JmsChannelParser, PointToPointChannelParser, PublishSubscribeChannelParser, RedisChannelParser

public abstract class AbstractChannelParser
extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

Base class for channel parsers.

Author:
Mark Fisher, Dave Syer

Field Summary
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
AbstractChannelParser()
           
 
Method Summary
protected abstract  org.springframework.beans.factory.support.BeanDefinitionBuilder buildBeanDefinition(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
          Subclasses must implement this method to create the bean definition.
protected  java.lang.String getDefaultMaxSubscribers(org.springframework.beans.factory.xml.ParserContext parserContext, java.lang.String channelInitializerPropertyName)
           
protected  org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(org.w3c.dom.Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
           
protected  void registerBeanDefinition(org.springframework.beans.factory.config.BeanDefinitionHolder definition, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
           
protected  void setMaxSubscribersProperty(org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.w3c.dom.Element element, java.lang.String channelInitializerPropertyName)
           
 
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 org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(org.w3c.dom.Element element,
                                                                                         org.springframework.beans.factory.xml.ParserContext parserContext)
Specified by:
parseInternal in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

registerBeanDefinition

protected void registerBeanDefinition(org.springframework.beans.factory.config.BeanDefinitionHolder definition,
                                      org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
Overrides:
registerBeanDefinition in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

buildBeanDefinition

protected abstract org.springframework.beans.factory.support.BeanDefinitionBuilder buildBeanDefinition(org.w3c.dom.Element element,
                                                                                                       org.springframework.beans.factory.xml.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.


setMaxSubscribersProperty

protected void setMaxSubscribersProperty(org.springframework.beans.factory.xml.ParserContext parserContext,
                                         org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
                                         org.w3c.dom.Element element,
                                         java.lang.String channelInitializerPropertyName)

getDefaultMaxSubscribers

protected java.lang.String getDefaultMaxSubscribers(org.springframework.beans.factory.xml.ParserContext parserContext,
                                                    java.lang.String channelInitializerPropertyName)

Spring Integration