Class InfrastructureAutoConfiguration
java.lang.Object
org.axonframework.extension.springboot.autoconfig.InfrastructureAutoConfiguration
Infrastructure autoconfiguration class for Axon Framework application. Constructs the look-up components, like the
MessageHandlerLookup and SpringEventSourcedEntityLookup to find Axon components and register them with the
corresponding configuration enhancers.- Since:
- 3.0.4
- Author:
- Allard Buijze
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageHandlerLookupProvides Spring message handler lookup.springEventSourcedEntityLookup(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) Provides a Spring entity lookup.
-
Constructor Details
-
InfrastructureAutoConfiguration
public InfrastructureAutoConfiguration()
-
-
Method Details
-
messageHandlerLookup
Provides Spring message handler lookup.- Returns:
- The lookup for annotations for later message handling registrations.
-
springEventSourcedEntityLookup
@Role(2) @Bean public static SpringEventSourcedEntityLookup springEventSourcedEntityLookup(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) Provides a Spring entity lookup.Besides the regular bean-registry-based entity discovery, this scans the auto-configuration base packages (see
AutoConfigurationPackages) for abstract polymorphic entity roots, since those are never registered as a bean by Spring's own component scan.- Parameters:
beanFactory- the bean factory to resolve the auto-configuration base packages from- Returns:
- the lookup scanning for annotations for later entity registrations
-