Package org.axonframework.spring.config
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
ConstructorsConstructorDescriptionAxonConfiguration(org.axonframework.config.Configurer configurer) Deprecated.Initializes a newAxonConfigurationthat uses the givenconfigurerto build the configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.org.axonframework.commandhandling.CommandBusDeprecated.org.axonframework.commandhandling.gateway.CommandGatewaycommandGateway(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.CommandBusDeprecated.org.axonframework.eventhandling.EventBusDeprecated.org.axonframework.queryhandling.QueryBusDeprecated.org.axonframework.queryhandling.QueryUpdateEmitterDeprecated.org.axonframework.eventhandling.EventBuseventBus()Deprecated.org.axonframework.config.EventProcessingConfigurationDeprecated.org.axonframework.serialization.SerializerDeprecated.<T> TgetComponent(Class<T> componentType, Supplier<T> defaultImpl) Deprecated.List<org.axonframework.config.ModuleConfiguration>Deprecated.intgetPhase()Deprecated.org.axonframework.messaging.annotation.HandlerDefinitionhandlerDefinition(Class<?> inspectedType) Deprecated.booleanDeprecated.booleanDeprecated.<M extends org.axonframework.messaging.Message<?>>
org.axonframework.monitoring.MessageMonitor<? super M>messageMonitor(Class<?> componentType, String componentName) Deprecated.org.axonframework.serialization.SerializerDeprecated.voidonShutdown(int phase, org.axonframework.config.LifecycleHandler shutdownHandler) Deprecated.voidonStart(int phase, org.axonframework.config.LifecycleHandler startHandler) Deprecated.org.axonframework.queryhandling.QueryBusqueryBus()Deprecated.org.axonframework.queryhandling.QueryGatewayqueryGateway(org.axonframework.queryhandling.QueryBus queryBus) Deprecated.org.axonframework.queryhandling.QueryUpdateEmitterDeprecated.<T> org.axonframework.modelling.command.Repository<T>repository(Class<T> aggregateType) Deprecated.org.axonframework.modelling.saga.ResourceInjectorDeprecated.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated.voidshutdown()Deprecated.voidstart()Deprecated.voidstop()Deprecated.voidDeprecated.org.axonframework.serialization.upcasting.event.EventUpcasterChainDeprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.config.Configuration
aggregateConfiguration, aggregateFactory, commandGateway, deadlineManager, eventGateway, eventScheduler, eventStore, findModules, getComponent, lifecycleRegistry, parameterResolverFactory, queryGateway, scopeAwareProvider, serializer, snapshotFilter, snapshotter, spanFactory, tagsMethods inherited from interface org.axonframework.config.LifecycleOperations
onShutdown, onShutdown, onStart, onStart
-
Constructor Details
-
AxonConfiguration
public AxonConfiguration(org.axonframework.config.Configurer configurer) Deprecated.Initializes a newAxonConfigurationthat uses the givenconfigurerto build the configuration.- Parameters:
configurer- Configuration builder for the AxonConfiguration.
-
-
Method Details
-
commandBus
public org.axonframework.commandhandling.CommandBus commandBus()Deprecated.- Specified by:
commandBusin interfaceorg.axonframework.config.Configuration
-
queryBus
public org.axonframework.queryhandling.QueryBus queryBus()Deprecated.- Specified by:
queryBusin interfaceorg.axonframework.config.Configuration
-
eventBus
public org.axonframework.eventhandling.EventBus eventBus()Deprecated.- Specified by:
eventBusin interfaceorg.axonframework.config.Configuration
-
queryUpdateEmitter
public org.axonframework.queryhandling.QueryUpdateEmitter queryUpdateEmitter()Deprecated.- Specified by:
queryUpdateEmitterin interfaceorg.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:
resourceInjectorin interfaceorg.axonframework.config.Configuration
-
eventProcessingConfiguration
public org.axonframework.config.EventProcessingConfiguration eventProcessingConfiguration()Deprecated.- Specified by:
eventProcessingConfigurationin interfaceorg.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:
repositoryin interfaceorg.axonframework.config.Configuration
-
getComponent
Deprecated.- Specified by:
getComponentin interfaceorg.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:
messageMonitorin interfaceorg.axonframework.config.Configuration
-
eventSerializer
public org.axonframework.serialization.Serializer eventSerializer()Deprecated.- Specified by:
eventSerializerin interfaceorg.axonframework.config.Configuration
-
messageSerializer
public org.axonframework.serialization.Serializer messageSerializer()Deprecated.- Specified by:
messageSerializerin interfaceorg.axonframework.config.Configuration
-
correlationDataProviders
public List<org.axonframework.messaging.correlation.CorrelationDataProvider> correlationDataProviders()Deprecated.- Specified by:
correlationDataProvidersin interfaceorg.axonframework.config.Configuration
-
handlerDefinition
public org.axonframework.messaging.annotation.HandlerDefinition handlerDefinition(Class<?> inspectedType) Deprecated.- Specified by:
handlerDefinitionin interfaceorg.axonframework.config.Configuration
-
upcasterChain
public org.axonframework.serialization.upcasting.event.EventUpcasterChain upcasterChain()Deprecated.- Specified by:
upcasterChainin interfaceorg.axonframework.config.Configuration
-
getModules
Deprecated.- Specified by:
getModulesin interfaceorg.axonframework.config.Configuration
-
onStart
public void onStart(int phase, org.axonframework.config.LifecycleHandler startHandler) Deprecated.- Specified by:
onStartin interfaceorg.axonframework.config.LifecycleOperations
-
onShutdown
public void onShutdown(int phase, org.axonframework.config.LifecycleHandler shutdownHandler) Deprecated.- Specified by:
onShutdownin interfaceorg.axonframework.config.LifecycleOperations
-
start
public void start()Deprecated.- Specified by:
startin interfaceorg.axonframework.config.Configuration- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
shutdown
public void shutdown()Deprecated.- Specified by:
shutdownin interfaceorg.axonframework.config.Configuration
-
stop
public void stop()Deprecated.- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()Deprecated.- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
isAutoStartup
public boolean isAutoStartup()Deprecated.- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
Deprecated.- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
getPhase
public int getPhase()Deprecated.- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setApplicationContext
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException Deprecated.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
SpringConfigurerandSpringAxonConfiguration.