Class AbstractExchangeParser
- java.lang.Object
-
- org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
- org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
- org.springframework.amqp.rabbit.config.AbstractExchangeParser
-
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
DirectExchangeParser
,FanoutExchangeParser
,HeadersExchangeParser
,TopicExchangeParser
public abstract class AbstractExchangeParser extends AbstractSingleBeanDefinitionParser
- Author:
- Dave Syer, Gary Russell, Felipe Gutierrez, Artem Bilan
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
BINDING_ARGUMENTS
protected static String
BINDING_EXCHANGE_ATTR
protected static String
BINDING_QUEUE_ATTR
-
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description AbstractExchangeParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
protected void
doParseBindings(Element element, ParserContext parserContext, String exchangeName, Element bindings, AbstractExchangeParser parser)
protected abstract BeanDefinitionBuilder
parseBinding(String exchangeName, Element binding, ParserContext parserContext)
protected void
parseBindings(Element element, ParserContext parserContext, BeanDefinitionBuilder builder, String exchangeName)
protected void
parseDestination(Element binding, ParserContext parserContext, BeanDefinitionBuilder builder)
protected boolean
shouldGenerateIdAsFallback()
protected boolean
shouldParseNameAsAliases()
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, getBeanClassName, getParentName, parseInternal
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId
-
-
-
-
Field Detail
-
BINDING_QUEUE_ATTR
protected static final String BINDING_QUEUE_ATTR
- See Also:
- Constant Field Values
-
BINDING_EXCHANGE_ATTR
protected static final String BINDING_EXCHANGE_ATTR
- See Also:
- Constant Field Values
-
BINDING_ARGUMENTS
protected static final String BINDING_ARGUMENTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
shouldGenerateIdAsFallback
protected boolean shouldGenerateIdAsFallback()
- Overrides:
shouldGenerateIdAsFallback
in classAbstractBeanDefinitionParser
-
shouldParseNameAsAliases
protected boolean shouldParseNameAsAliases()
- Overrides:
shouldParseNameAsAliases
in classAbstractBeanDefinitionParser
-
doParse
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)
- Overrides:
doParse
in classAbstractSingleBeanDefinitionParser
-
parseBindings
protected void parseBindings(Element element, ParserContext parserContext, BeanDefinitionBuilder builder, String exchangeName)
-
doParseBindings
protected void doParseBindings(Element element, ParserContext parserContext, String exchangeName, Element bindings, AbstractExchangeParser parser)
-
parseBinding
protected abstract BeanDefinitionBuilder parseBinding(String exchangeName, Element binding, ParserContext parserContext)
-
parseDestination
protected void parseDestination(Element binding, ParserContext parserContext, BeanDefinitionBuilder builder)
-
-