Class SpringConfigurer

java.lang.Object
org.axonframework.config.DefaultConfigurer
org.axonframework.spring.config.SpringConfigurer
All Implemented Interfaces:
org.axonframework.config.Configurer, org.axonframework.config.LifecycleOperations

public class SpringConfigurer extends org.axonframework.config.DefaultConfigurer
A Configurer implementation that considers the Spring Application context as a source for components.
Since:
4.6.0
Author:
Allard Buijze
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpringConfigurer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
    Initialize this Configurer using given beanFactory to locate components.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <T> Optional<T>
    defaultComponent(Class<T> type, org.axonframework.config.Configuration config)
     

    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, registerQueryHandler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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, start

    Methods inherited from interface org.axonframework.config.LifecycleOperations

    onShutdown, onShutdown, onStart, onStart
  • Constructor Details

    • SpringConfigurer

      public SpringConfigurer(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
      Initialize this Configurer using given beanFactory to locate components.
      Parameters:
      beanFactory - The Bean Factory to find components in.
  • Method Details

    • defaultComponent

      protected <T> Optional<T> defaultComponent(Class<T> type, org.axonframework.config.Configuration config)
      Overrides:
      defaultComponent in class org.axonframework.config.DefaultConfigurer