Package org.axonframework.spring.config
Class SpringConfigurer
java.lang.Object
org.axonframework.config.DefaultConfigurer
org.axonframework.spring.config.SpringConfigurer
- All Implemented Interfaces:
Configurer,LifecycleOperations
A
Configurer implementation that considers the Spring Application context as a
source for components.- Since:
- 4.6.0
- Author:
- Allard Buijze
-
Constructor Summary
ConstructorsConstructorDescriptionSpringConfigurer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) Initialize thisConfigurerusing givenbeanFactoryto locate components. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Optional<T> defaultComponent(Class<T> type, Configuration config) Method returning a default component to use for giventypefor givenconfiguration, or an empty Optional if no default can be provided.Methods inherited from class org.axonframework.config.DefaultConfigurer
buildConfiguration, configureAggregate, configureCorrelationDataProviders, configureEmbeddedEventStore, configureEventSerializer, configureLifecyclePhaseTimeout, configureMessageMonitor, configureMessageMonitor, configureMessageMonitor, configureMessageSerializer, defaultCommandBus, defaultCommandBusSpanFactory, defaultCommandGateway, defaultConfiguration, defaultConfiguration, defaultDeadlineManager, defaultDeadlineManagerSpanFactory, defaultEventBus, defaultEventBusSpanFactory, defaultEventGateway, defaultEventProcessorSpanFactory, defaultHandlerDefinition, defaultParameterResolverFactory, defaultQueryBus, defaultQueryBusSpanFactory, defaultQueryGateway, defaultQueryUpdateEmitter, defaultQueryUpdateEmitterSpanFactory, defaultRepositorySpanFactory, defaultResourceInjector, defaultSagaManagerSpanFactory, defaultScopeAwareProvider, defaultSerializer, defaultSnapshotter, defaultSnapshotterSpanFactory, defaultSpanFactory, defaultUpcasterChain, eventProcessing, getComponents, getConfig, invokeInitHandlers, invokeShutdownHandlers, invokeStartHandlers, jpaConfiguration, jpaConfiguration, onShutdown, onStart, prepareMessageHandlerRegistrars, prepareModules, registerCommandHandler, registerComponent, registerEventUpcaster, registerHandlerDefinition, registerHandlerEnhancerDefinition, registerMessageHandler, registerModule, registerQueryHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.config.Configurer
configureAggregate, configureCommandBus, configureDeadlineManager, configureEventBus, configureEventStore, configureMessageMonitor, configureMessageMonitor, configureQueryBus, configureQueryUpdateEmitter, configureResourceInjector, configureSerializer, configureSnapshotter, configureSpanFactory, configureTags, configureTransactionManager, eventProcessing, onInitialize, registerCommandHandler, registerEventHandler, registerQueryHandler, startMethods inherited from interface org.axonframework.config.LifecycleOperations
onShutdown, onShutdown, onStart, onStart
-
Constructor Details
-
SpringConfigurer
public SpringConfigurer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) Initialize thisConfigurerusing givenbeanFactoryto locate components.- Parameters:
beanFactory- The Bean Factory to find components in.
-
-
Method Details
-
defaultComponent
Description copied from class:DefaultConfigurerMethod returning a default component to use for giventypefor givenconfiguration, or an empty Optional if no default can be provided.- Overrides:
defaultComponentin classDefaultConfigurer- Type Parameters:
T- The type of component.- Parameters:
type- The type of component to find a default for.config- The configuration the component is configured in.- Returns:
- An Optional containing a default component, or empty if none can be provided.
-