Package com.consol.citrus.config.xml
Class AbstractEndpointParser
- java.lang.Object
-
- org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
- com.consol.citrus.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
-
-
Constructor Summary
Constructors Constructor Description AbstractEndpointParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Class<? extends com.consol.citrus.endpoint.Endpoint>
getEndpointClass()
Subclasses must provide endpoint class.protected abstract Class<? extends com.consol.citrus.endpoint.EndpointConfiguration>
getEndpointConfigurationClass()
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)
-
-
-
Method Detail
-
parseInternal
protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)
- Specified by:
parseInternal
in classorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
getEndpointClass
protected abstract Class<? extends com.consol.citrus.endpoint.Endpoint> getEndpointClass()
Subclasses must provide endpoint class.- Returns:
-
getEndpointConfigurationClass
protected abstract Class<? extends com.consol.citrus.endpoint.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
-
-
-