Class AxonConfiguration

java.lang.Object
org.axonframework.spring.config.AxonConfiguration
All Implemented Interfaces:
org.axonframework.config.Configuration, org.axonframework.config.LifecycleOperations, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

@Configuration("org.axonframework.spring.config.AxonConfiguration") @Deprecated public class AxonConfiguration extends Object implements org.axonframework.config.Configuration, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
Deprecated.
Spring Configuration class that defines a number of conditional beans. It also allows for access to components that are available in the Configuration, but not made available as Spring beans by default.
Since:
3.0
Author:
Allard Buijze
  • Field Summary

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors
    Constructor
    Description
    AxonConfiguration(org.axonframework.config.Configurer configurer)
    Deprecated.
    Initializes a new AxonConfiguration that uses the given configurer to build the configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    org.axonframework.commandhandling.CommandBus
    Deprecated.
     
    org.axonframework.commandhandling.gateway.CommandGateway
    commandGateway(org.axonframework.commandhandling.CommandBus commandBus)
    Deprecated.
    Returns the CommandGateway used to send commands to command handlers.
    List<org.axonframework.messaging.correlation.CorrelationDataProvider>
    Deprecated.
     
    org.axonframework.commandhandling.CommandBus
    Deprecated.
     
    org.axonframework.eventhandling.EventBus
    Deprecated.
     
    org.axonframework.queryhandling.QueryBus
    Deprecated.
     
    org.axonframework.queryhandling.QueryUpdateEmitter
    Deprecated.
     
    org.axonframework.eventhandling.EventBus
    Deprecated.
     
    org.axonframework.config.EventProcessingConfiguration
    Deprecated.
     
    org.axonframework.serialization.Serializer
    Deprecated.
     
    <T> T
    getComponent(Class<T> componentType, Supplier<T> defaultImpl)
    Deprecated.
     
    List<org.axonframework.config.ModuleConfiguration>
    Deprecated.
     
    int
    Deprecated.
     
    org.axonframework.messaging.annotation.HandlerDefinition
    handlerDefinition(Class<?> inspectedType)
    Deprecated.
     
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
    <M extends org.axonframework.messaging.Message<?>>
    org.axonframework.monitoring.MessageMonitor<? super M>
    messageMonitor(Class<?> componentType, String componentName)
    Deprecated.
     
    org.axonframework.serialization.Serializer
    Deprecated.
     
    void
    onShutdown(int phase, org.axonframework.config.LifecycleHandler shutdownHandler)
    Deprecated.
     
    void
    onStart(int phase, org.axonframework.config.LifecycleHandler startHandler)
    Deprecated.
     
    org.axonframework.queryhandling.QueryBus
    Deprecated.
     
    org.axonframework.queryhandling.QueryGateway
    queryGateway(org.axonframework.queryhandling.QueryBus queryBus)
    Deprecated.
     
    org.axonframework.queryhandling.QueryUpdateEmitter
    Deprecated.
     
    <T> org.axonframework.modelling.command.Repository<T>
    repository(Class<T> aggregateType)
    Deprecated.
     
    org.axonframework.modelling.saga.ResourceInjector
    Deprecated.
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    Deprecated.
     
    void
    Deprecated.
     
    void
    Deprecated.
     
    void
    Deprecated.
     
    void
    stop(Runnable callback)
    Deprecated.
     
    org.axonframework.serialization.upcasting.event.EventUpcasterChain
    Deprecated.
     

    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.Configuration

    aggregateConfiguration, aggregateFactory, commandGateway, deadlineManager, eventGateway, eventScheduler, eventStore, findModules, getComponent, lifecycleRegistry, parameterResolverFactory, queryGateway, scopeAwareProvider, serializer, snapshotFilter, snapshotter, spanFactory, tags

    Methods inherited from interface org.axonframework.config.LifecycleOperations

    onShutdown, onShutdown, onStart, onStart
  • Constructor Details

    • AxonConfiguration

      public AxonConfiguration(org.axonframework.config.Configurer configurer)
      Deprecated.
      Initializes a new AxonConfiguration that uses the given configurer to build the configuration.
      Parameters:
      configurer - Configuration builder for the AxonConfiguration.
  • Method Details

    • commandBus

      public org.axonframework.commandhandling.CommandBus commandBus()
      Deprecated.
      Specified by:
      commandBus in interface org.axonframework.config.Configuration
    • queryBus

      public org.axonframework.queryhandling.QueryBus queryBus()
      Deprecated.
      Specified by:
      queryBus in interface org.axonframework.config.Configuration
    • eventBus

      public org.axonframework.eventhandling.EventBus eventBus()
      Deprecated.
      Specified by:
      eventBus in interface org.axonframework.config.Configuration
    • queryUpdateEmitter

      public org.axonframework.queryhandling.QueryUpdateEmitter queryUpdateEmitter()
      Deprecated.
      Specified by:
      queryUpdateEmitter in interface org.axonframework.config.Configuration
    • defaultQueryBus

      @Bean("queryBus") public org.axonframework.queryhandling.QueryBus defaultQueryBus()
      Deprecated.
    • defaultQueryUpdateEmitter

      @Bean("queryUpdateEmitter") public org.axonframework.queryhandling.QueryUpdateEmitter defaultQueryUpdateEmitter()
      Deprecated.
    • defaultCommandBus

      @Bean("commandBus") public org.axonframework.commandhandling.CommandBus defaultCommandBus()
      Deprecated.
    • defaultEventBus

      @Bean("eventBus") public org.axonframework.eventhandling.EventBus defaultEventBus()
      Deprecated.
    • resourceInjector

      public org.axonframework.modelling.saga.ResourceInjector resourceInjector()
      Deprecated.
      Specified by:
      resourceInjector in interface org.axonframework.config.Configuration
    • eventProcessingConfiguration

      public org.axonframework.config.EventProcessingConfiguration eventProcessingConfiguration()
      Deprecated.
      Specified by:
      eventProcessingConfiguration in interface org.axonframework.config.Configuration
    • commandGateway

      @Bean public org.axonframework.commandhandling.gateway.CommandGateway commandGateway(org.axonframework.commandhandling.CommandBus commandBus)
      Deprecated.
      Returns the CommandGateway used to send commands to command handlers.
      Parameters:
      commandBus - the command bus to be used by the gateway
      Returns:
      the CommandGateway used to send commands to command handlers
    • queryGateway

      @Bean public org.axonframework.queryhandling.QueryGateway queryGateway(org.axonframework.queryhandling.QueryBus queryBus)
      Deprecated.
    • repository

      public <T> org.axonframework.modelling.command.Repository<T> repository(@Nonnull Class<T> aggregateType)
      Deprecated.
      Specified by:
      repository in interface org.axonframework.config.Configuration
    • getComponent

      public <T> T getComponent(@Nonnull Class<T> componentType, @Nonnull Supplier<T> defaultImpl)
      Deprecated.
      Specified by:
      getComponent in interface org.axonframework.config.Configuration
    • messageMonitor

      public <M extends org.axonframework.messaging.Message<?>> org.axonframework.monitoring.MessageMonitor<? super M> messageMonitor(@Nonnull Class<?> componentType, @Nonnull String componentName)
      Deprecated.
      Specified by:
      messageMonitor in interface org.axonframework.config.Configuration
    • eventSerializer

      public org.axonframework.serialization.Serializer eventSerializer()
      Deprecated.
      Specified by:
      eventSerializer in interface org.axonframework.config.Configuration
    • messageSerializer

      public org.axonframework.serialization.Serializer messageSerializer()
      Deprecated.
      Specified by:
      messageSerializer in interface org.axonframework.config.Configuration
    • correlationDataProviders

      public List<org.axonframework.messaging.correlation.CorrelationDataProvider> correlationDataProviders()
      Deprecated.
      Specified by:
      correlationDataProviders in interface org.axonframework.config.Configuration
    • handlerDefinition

      public org.axonframework.messaging.annotation.HandlerDefinition handlerDefinition(Class<?> inspectedType)
      Deprecated.
      Specified by:
      handlerDefinition in interface org.axonframework.config.Configuration
    • upcasterChain

      public org.axonframework.serialization.upcasting.event.EventUpcasterChain upcasterChain()
      Deprecated.
      Specified by:
      upcasterChain in interface org.axonframework.config.Configuration
    • getModules

      public List<org.axonframework.config.ModuleConfiguration> getModules()
      Deprecated.
      Specified by:
      getModules in interface org.axonframework.config.Configuration
    • onStart

      public void onStart(int phase, org.axonframework.config.LifecycleHandler startHandler)
      Deprecated.
      Specified by:
      onStart in interface org.axonframework.config.LifecycleOperations
    • onShutdown

      public void onShutdown(int phase, org.axonframework.config.LifecycleHandler shutdownHandler)
      Deprecated.
      Specified by:
      onShutdown in interface org.axonframework.config.LifecycleOperations
    • start

      public void start()
      Deprecated.
      Specified by:
      start in interface org.axonframework.config.Configuration
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • shutdown

      public void shutdown()
      Deprecated.
      Specified by:
      shutdown in interface org.axonframework.config.Configuration
    • stop

      public void stop()
      Deprecated.
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Deprecated.
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • isAutoStartup

      public boolean isAutoStartup()
      Deprecated.
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • stop

      public void stop(Runnable callback)
      Deprecated.
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • getPhase

      public int getPhase()
      Deprecated.
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • afterPropertiesSet

      public void afterPropertiesSet()
      Deprecated.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • setApplicationContext

      public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Deprecated.
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException