Class SpringSagaLookup
java.lang.Object
org.axonframework.extension.spring.config.SpringSagaLookup
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
@Internal
public class SpringSagaLookup
extends Object
implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
A
BeanDefinitionRegistryPostProcessor implementation that scans for Saga types and registers a
configurer for each Saga found.
A Saga is recognized by the @Saga annotation on its bean definition. The configurer is registered under
the bean name "<sagaBeanName>$$Registrar", which doubles as an opt-out: declaring that bean name yourself
keeps this lookup from configuring the Saga.
The work happens in postProcessBeanFactory(ConfigurableListableBeanFactory) rather than in
postProcessBeanDefinitionRegistry(BeanDefinitionRegistry), since resolving the bean type and the annotation
attributes needs a bean factory.
This class is internal wiring: it is declared by the Saga auto configuration and never referenced from application code, so its shape may change with the Saga support it serves.
- Since:
- 4.6.0
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
-
Constructor Details
-
SpringSagaLookup
public SpringSagaLookup()
-
-
Method Details
-
postProcessBeanFactory
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor- Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessBeanDefinitionRegistry
public void postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanDefinitionRegistryin interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor- Throws:
org.springframework.beans.BeansException
-