org.axonframework.contextsupport.spring
Class AnnotationConfigurationBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.axonframework.contextsupport.spring.AnnotationConfigurationBeanDefinitionParser
- All Implemented Interfaces:
- org.springframework.beans.factory.xml.BeanDefinitionParser
public class AnnotationConfigurationBeanDefinitionParser
- extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
The AnnotationConfigurationBeanDefinitionParser is responsible for parsing the annotation-config element from the
Axon namespace. The parser registers BeanDefinitions for an AnnotationCommandHandlerBeanPostProcessor and an
AnnotationEventListenerBeanPostProcessor, with optional
configuration for an explicit CommandBus, EventBus and Executor instance.
- Since:
- 0.7
- Author:
- Ben Z. Tels
| Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
ID_ATTRIBUTE, NAME_ATTRIBUTE |
| Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationConfigurationBeanDefinitionParser
public AnnotationConfigurationBeanDefinitionParser()
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
registerAnnotationEventListenerBeanPostProcessor
public void registerAnnotationEventListenerBeanPostProcessor(String eventBus,
String phase,
String unsubscribeOnShutdown,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
- Create the
BeanDefinition for the AnnotationEventListenerBeanPostProcessor and register it.
- Parameters:
eventBus - The bean name of the event bus to subscribe tophase - The lifecycle phase for the post processorunsubscribeOnShutdown - Whether to unsubscribe beans on shutdownregistry - The registry containing bean definitions
registerAnnotationCommandHandlerBeanPostProcessor
public void registerAnnotationCommandHandlerBeanPostProcessor(String commandBus,
String phase,
String unsubscribeOnShutdown,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
- Create the
BeanDefinition for the AnnotationCommandHandlerBeanPostProcessor and register it.
- Parameters:
commandBus - The bean name of the command bus to subscribe tophase - The lifecycle phase for the post processorunsubscribeOnShutdown - Whether to unsubscribe beans on shutdownregistry - The registry containing bean definitions
Copyright © 2010-2016. All Rights Reserved.