Package org.citrusframework.config.xml
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 -
Method Summary
Modifier and TypeMethodDescriptionSubclasses must provide endpoint class.protected abstract Class<? extends EndpointConfiguration>Subclasses must provide endpoint configuration class.protected voidparseEndpoint(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 voidparseEndpointConfiguration(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.AbstractBeanDefinitionparseInternal(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
-
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:
parseInternalin classorg.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
getEndpointClass
Subclasses must provide endpoint class.- Returns:
-
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-
-