abstract class AbstractListenerContainerParser extends java.lang.Object implements BeanDefinitionParser
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ACKNOWLEDGE_ATTRIBUTE |
protected static java.lang.String |
ACKNOWLEDGE_AUTO |
protected static java.lang.String |
ACKNOWLEDGE_CLIENT |
protected static java.lang.String |
ACKNOWLEDGE_DUPS_OK |
protected static java.lang.String |
ACKNOWLEDGE_TRANSACTED |
protected static java.lang.String |
CLIENT_ID_ATTRIBUTE |
protected static java.lang.String |
CONCURRENCY_ATTRIBUTE |
protected static java.lang.String |
DESTINATION_ATTRIBUTE |
protected static java.lang.String |
DESTINATION_RESOLVER_ATTRIBUTE |
protected static java.lang.String |
DESTINATION_TYPE_ATTRIBUTE |
protected static java.lang.String |
DESTINATION_TYPE_DURABLE_TOPIC |
protected static java.lang.String |
DESTINATION_TYPE_QUEUE |
protected static java.lang.String |
DESTINATION_TYPE_SHARED_DURABLE_TOPIC |
protected static java.lang.String |
DESTINATION_TYPE_SHARED_TOPIC |
protected static java.lang.String |
DESTINATION_TYPE_TOPIC |
protected static java.lang.String |
FACTORY_ID_ATTRIBUTE |
protected static java.lang.String |
ID_ATTRIBUTE |
protected static java.lang.String |
LISTENER_ELEMENT |
protected static java.lang.String |
MESSAGE_CONVERTER_ATTRIBUTE |
protected static java.lang.String |
METHOD_ATTRIBUTE |
protected static java.lang.String |
PHASE_ATTRIBUTE |
protected static java.lang.String |
PREFETCH_ATTRIBUTE |
protected static java.lang.String |
REF_ATTRIBUTE |
protected static java.lang.String |
RESPONSE_DESTINATION_ATTRIBUTE |
protected static java.lang.String |
RESPONSE_DESTINATION_TYPE_ATTRIBUTE |
protected static java.lang.String |
SELECTOR_ATTRIBUTE |
protected static java.lang.String |
SUBSCRIPTION_ATTRIBUTE |
protected static java.lang.String |
TRANSACTION_MANAGER_ATTRIBUTE |
Constructor and Description |
---|
AbstractListenerContainerParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract RootBeanDefinition |
createContainer(org.w3c.dom.Element containerEle,
org.w3c.dom.Element listenerEle,
ParserContext parserContext,
PropertyValues commonContainerProperties,
PropertyValues specificContainerProperties)
Create the container
BeanDefinition for the specified context. |
protected abstract RootBeanDefinition |
createContainerFactory(java.lang.String factoryId,
org.w3c.dom.Element containerEle,
ParserContext parserContext,
PropertyValues commonContainerProperties,
PropertyValues specificContainerProperties)
Create the
BeanDefinition for the container factory using the specified
shared property values. |
BeanDefinition |
parse(org.w3c.dom.Element element,
ParserContext parserContext)
Parse the specified
Element and register the resulting
BeanDefinition(s) with the
BeanDefinitionRegistry
embedded in the supplied ParserContext . |
protected java.lang.Integer |
parseAcknowledgeMode(org.w3c.dom.Element ele,
ParserContext parserContext) |
protected MutablePropertyValues |
parseCommonContainerProperties(org.w3c.dom.Element containerEle,
ParserContext parserContext) |
private void |
parseListener(org.w3c.dom.Element containerEle,
org.w3c.dom.Element listenerEle,
ParserContext parserContext,
PropertyValues commonContainerProperties,
PropertyValues specificContainerProperties) |
protected void |
parseListenerConfiguration(org.w3c.dom.Element ele,
ParserContext parserContext,
MutablePropertyValues configValues) |
protected abstract MutablePropertyValues |
parseSpecificContainerProperties(org.w3c.dom.Element containerEle,
ParserContext parserContext)
Parse the common properties for all listeners as defined by the specified
container
Element . |
protected static final java.lang.String FACTORY_ID_ATTRIBUTE
protected static final java.lang.String LISTENER_ELEMENT
protected static final java.lang.String ID_ATTRIBUTE
protected static final java.lang.String DESTINATION_ATTRIBUTE
protected static final java.lang.String SUBSCRIPTION_ATTRIBUTE
protected static final java.lang.String SELECTOR_ATTRIBUTE
protected static final java.lang.String REF_ATTRIBUTE
protected static final java.lang.String METHOD_ATTRIBUTE
protected static final java.lang.String DESTINATION_RESOLVER_ATTRIBUTE
protected static final java.lang.String MESSAGE_CONVERTER_ATTRIBUTE
protected static final java.lang.String RESPONSE_DESTINATION_ATTRIBUTE
protected static final java.lang.String DESTINATION_TYPE_ATTRIBUTE
protected static final java.lang.String DESTINATION_TYPE_QUEUE
protected static final java.lang.String DESTINATION_TYPE_TOPIC
protected static final java.lang.String DESTINATION_TYPE_DURABLE_TOPIC
protected static final java.lang.String DESTINATION_TYPE_SHARED_TOPIC
protected static final java.lang.String DESTINATION_TYPE_SHARED_DURABLE_TOPIC
protected static final java.lang.String RESPONSE_DESTINATION_TYPE_ATTRIBUTE
protected static final java.lang.String CLIENT_ID_ATTRIBUTE
protected static final java.lang.String ACKNOWLEDGE_ATTRIBUTE
protected static final java.lang.String ACKNOWLEDGE_AUTO
protected static final java.lang.String ACKNOWLEDGE_CLIENT
protected static final java.lang.String ACKNOWLEDGE_DUPS_OK
protected static final java.lang.String ACKNOWLEDGE_TRANSACTED
protected static final java.lang.String TRANSACTION_MANAGER_ATTRIBUTE
protected static final java.lang.String CONCURRENCY_ATTRIBUTE
protected static final java.lang.String PHASE_ATTRIBUTE
protected static final java.lang.String PREFETCH_ATTRIBUTE
public BeanDefinition parse(org.w3c.dom.Element element, ParserContext parserContext)
BeanDefinitionParser
Element
and register the resulting
BeanDefinition(s)
with the
BeanDefinitionRegistry
embedded in the supplied ParserContext
.
Implementations must return the primary BeanDefinition
that results
from the parse if they will ever be used in a nested fashion (for example as
an inner tag in a <property/>
tag). Implementations may return
null
if they will not be used in a nested fashion.
parse
in interface BeanDefinitionParser
element
- the element that is to be parsed into one or more BeanDefinitions
parserContext
- the object encapsulating the current state of the parsing process;
provides access to a BeanDefinitionRegistry
BeanDefinition
private void parseListener(org.w3c.dom.Element containerEle, org.w3c.dom.Element listenerEle, ParserContext parserContext, PropertyValues commonContainerProperties, PropertyValues specificContainerProperties)
protected void parseListenerConfiguration(org.w3c.dom.Element ele, ParserContext parserContext, MutablePropertyValues configValues)
protected MutablePropertyValues parseCommonContainerProperties(org.w3c.dom.Element containerEle, ParserContext parserContext)
protected abstract MutablePropertyValues parseSpecificContainerProperties(org.w3c.dom.Element containerEle, ParserContext parserContext)
Element
.protected abstract RootBeanDefinition createContainerFactory(java.lang.String factoryId, org.w3c.dom.Element containerEle, ParserContext parserContext, PropertyValues commonContainerProperties, PropertyValues specificContainerProperties)
BeanDefinition
for the container factory using the specified
shared property values.protected abstract RootBeanDefinition createContainer(org.w3c.dom.Element containerEle, org.w3c.dom.Element listenerEle, ParserContext parserContext, PropertyValues commonContainerProperties, PropertyValues specificContainerProperties)
BeanDefinition
for the specified context.protected java.lang.Integer parseAcknowledgeMode(org.w3c.dom.Element ele, ParserContext parserContext)