Class AbstractChannelParser

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

public abstract class AbstractChannelParser extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
Base class for channel parsers.
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

    ID_ATTRIBUTE, NAME_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract org.springframework.beans.factory.support.BeanDefinitionBuilder
    buildBeanDefinition(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
    Subclasses must implement this method to create the bean definition.
    protected org.springframework.beans.factory.support.AbstractBeanDefinition
    parseInternal(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)
     

    Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

    parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractChannelParser

      public AbstractChannelParser()
  • Method Details

    • parseInternal

      protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(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(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.
      Parameters:
      element - The element.
      parserContext - The parser context.
      Returns:
      The bean definition builder.