Class PersistentStreamMessageSourceRegistrar
java.lang.Object
org.axonframework.springboot.autoconfig.PersistentStreamMessageSourceRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanFactoryPostProcessor,org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
public class PersistentStreamMessageSourceRegistrar
extends Object
implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
Post-processor to create Spring beans for persistent streams defined in the application context.
- Since:
- 4.10.0
- Author:
- Marc Gathier
-
Constructor Summary
ConstructorsConstructorDescriptionPersistentStreamMessageSourceRegistrar(org.springframework.core.env.Environment environment, PersistentStreamScheduledExecutorBuilder executorBuilder) Instantiates aPersistentStreamMessageSourceRegistrarinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) voidpostProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory)
-
Constructor Details
-
PersistentStreamMessageSourceRegistrar
public PersistentStreamMessageSourceRegistrar(org.springframework.core.env.Environment environment, PersistentStreamScheduledExecutorBuilder executorBuilder) Instantiates aPersistentStreamMessageSourceRegistrarinstance.This registrar will retrieve the
persistent stream definitionsfrom the givenenvironment.- Parameters:
environment- Application configuration environment.executorBuilder- TheScheduledExecutorServicebuilder used during construction of thePersistentStreamMessageSourceDefinition.
-
-
Method Details
-
postProcessBeanDefinitionRegistry
public void postProcessBeanDefinitionRegistry(@Nonnull org.springframework.beans.factory.support.BeanDefinitionRegistry beanDefinitionRegistry) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanDefinitionRegistryin interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor- Throws:
org.springframework.beans.BeansException
-
postProcessBeanFactory
public void postProcessBeanFactory(@Nonnull org.springframework.beans.factory.config.ConfigurableListableBeanFactory configurableListableBeanFactory) throws org.springframework.beans.BeansException - Specified by:
postProcessBeanFactoryin interfaceorg.springframework.beans.factory.config.BeanFactoryPostProcessor- Throws:
org.springframework.beans.BeansException
-