Class AbstractEndpointParser

java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.citrusframework.config.xml.AbstractEndpointParser
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
Direct Known Subclasses:
AbstractDirectEndpointParser

public abstract class AbstractEndpointParser extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
Basic endpoint parser adds test actor reference if present and combines endpoint with respective configuration bean definition. Registers endpoint configuration as bean definition in parser context and adds reference to endpoint bean definition.
Since:
1.4
Author:
Christoph Deppisch
  • 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 Class<? extends Endpoint>
    Subclasses must provide endpoint class.
    protected abstract Class<? extends EndpointConfiguration>
    Subclasses must provide endpoint configuration class.
    protected void
    parseEndpoint(org.springframework.beans.factory.support.BeanDefinitionBuilder endpointBuilder, Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
    Subclasses can implement this parsing method in order to provide detailed endpoint bean definition properties.
    protected void
    parseEndpointConfiguration(org.springframework.beans.factory.support.BeanDefinitionBuilder endpointConfigurationBuilder, Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
    Subclasses can override this parsing method in order to provide proper endpoint configuration bean definition properties.
    protected org.springframework.beans.factory.support.AbstractBeanDefinition
    parseInternal(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
     

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

    parse, postProcessComponentDefinition, registerBeanDefinition, 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

    • AbstractEndpointParser

      public AbstractEndpointParser()
  • 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
    • getEndpointClass

      protected abstract Class<? extends Endpoint> getEndpointClass()
      Subclasses must provide endpoint class.
      Returns:
    • getEndpointConfigurationClass

      protected abstract Class<? extends EndpointConfiguration> getEndpointConfigurationClass()
      Subclasses must provide endpoint configuration class.
      Returns:
    • parseEndpointConfiguration

      protected void parseEndpointConfiguration(org.springframework.beans.factory.support.BeanDefinitionBuilder endpointConfigurationBuilder, Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
      Subclasses can override this parsing method in order to provide proper endpoint configuration bean definition properties.
      Parameters:
      endpointConfigurationBuilder -
      element -
      parserContext -
    • parseEndpoint

      protected void parseEndpoint(org.springframework.beans.factory.support.BeanDefinitionBuilder endpointBuilder, Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
      Subclasses can implement this parsing method in order to provide detailed endpoint bean definition properties.
      Parameters:
      endpointBuilder -
      element -
      parserContext -