public class SpringAggregateLookup extends Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
BeanDefinitionRegistryPostProcessor
implementation that scans for Aggregate types and registers a
configurer
for each Aggregate found.Constructor and Description |
---|
SpringAggregateLookup() |
Modifier and Type | Method and Description |
---|---|
static <A> Map<org.axonframework.spring.config.SpringAggregateLookup.SpringAggregate<? super A>,Map<Class<? extends A>,String>> |
buildAggregateHierarchy(org.springframework.beans.factory.ListableBeanFactory beanFactory,
String[] aggregatePrototypes)
Builds a hierarchy model from the given
aggregatePrototypes found in the given beanFactory . |
void |
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
public static <A> Map<org.axonframework.spring.config.SpringAggregateLookup.SpringAggregate<? super A>,Map<Class<? extends A>,String>> buildAggregateHierarchy(org.springframework.beans.factory.ListableBeanFactory beanFactory, String[] aggregatePrototypes)
aggregatePrototypes
found in the given beanFactory
.A
- The type of Aggregate.beanFactory
- The beanFactory containing the definitions of the Aggregates.aggregatePrototypes
- The prototype beans found for each individual type of Aggregate.public void postProcessBeanFactory(@Nonnull org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory
in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
org.springframework.beans.BeansException
public void postProcessBeanDefinitionRegistry(@Nonnull org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException
postProcessBeanDefinitionRegistry
in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
org.springframework.beans.BeansException
Copyright © 2010–2023. All rights reserved.