@Configuration(value="org.axonframework.spring.config.AxonConfiguration") public class AxonConfiguration extends Object implements org.axonframework.config.Configuration, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
AxonConfiguration(org.axonframework.config.Configurer configurer)
Initializes a new
AxonConfiguration that uses the given configurer to build the configuration. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.axonframework.commandhandling.CommandBus |
commandBus() |
org.axonframework.commandhandling.gateway.CommandGateway |
commandGateway(org.axonframework.commandhandling.CommandBus commandBus)
Returns the CommandGateway used to send commands to command handlers.
|
List<org.axonframework.messaging.correlation.CorrelationDataProvider> |
correlationDataProviders() |
org.axonframework.commandhandling.CommandBus |
defaultCommandBus() |
org.axonframework.eventhandling.EventBus |
defaultEventBus() |
org.axonframework.queryhandling.QueryBus |
defaultQueryBus() |
org.axonframework.queryhandling.QueryUpdateEmitter |
defaultQueryUpdateEmitter() |
org.axonframework.eventhandling.EventBus |
eventBus() |
org.axonframework.config.EventProcessingConfiguration |
eventProcessingConfiguration() |
org.axonframework.serialization.Serializer |
eventSerializer() |
<T> T |
getComponent(Class<T> componentType,
Supplier<T> defaultImpl) |
List<org.axonframework.config.ModuleConfiguration> |
getModules() |
int |
getPhase() |
org.axonframework.messaging.annotation.HandlerDefinition |
handlerDefinition(Class<?> inspectedType) |
boolean |
isAutoStartup() |
boolean |
isRunning() |
<M extends org.axonframework.messaging.Message<?>> |
messageMonitor(Class<?> componentType,
String componentName) |
org.axonframework.serialization.Serializer |
messageSerializer() |
void |
onShutdown(int phase,
org.axonframework.config.LifecycleHandler shutdownHandler) |
void |
onStart(int phase,
org.axonframework.config.LifecycleHandler startHandler) |
org.axonframework.queryhandling.QueryBus |
queryBus() |
org.axonframework.queryhandling.QueryGateway |
queryGateway(org.axonframework.queryhandling.QueryBus queryBus) |
org.axonframework.queryhandling.QueryUpdateEmitter |
queryUpdateEmitter() |
<T> org.axonframework.modelling.command.Repository<T> |
repository(Class<T> aggregateType) |
org.axonframework.modelling.saga.ResourceInjector |
resourceInjector() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
shutdown() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
org.axonframework.serialization.upcasting.event.EventUpcasterChain |
upcasterChain() |
public AxonConfiguration(org.axonframework.config.Configurer configurer)
AxonConfiguration that uses the given configurer to build the configuration.configurer - Configuration builder for the AxonConfiguration.public org.axonframework.commandhandling.CommandBus commandBus()
commandBus in interface org.axonframework.config.Configurationpublic org.axonframework.queryhandling.QueryBus queryBus()
queryBus in interface org.axonframework.config.Configurationpublic org.axonframework.eventhandling.EventBus eventBus()
eventBus in interface org.axonframework.config.Configurationpublic org.axonframework.queryhandling.QueryUpdateEmitter queryUpdateEmitter()
queryUpdateEmitter in interface org.axonframework.config.Configuration@Bean(value="queryBus") public org.axonframework.queryhandling.QueryBus defaultQueryBus()
@Bean(value="queryUpdateEmitter") public org.axonframework.queryhandling.QueryUpdateEmitter defaultQueryUpdateEmitter()
@Bean(value="commandBus") public org.axonframework.commandhandling.CommandBus defaultCommandBus()
@Bean(value="eventBus") public org.axonframework.eventhandling.EventBus defaultEventBus()
public org.axonframework.modelling.saga.ResourceInjector resourceInjector()
resourceInjector in interface org.axonframework.config.Configurationpublic org.axonframework.config.EventProcessingConfiguration eventProcessingConfiguration()
eventProcessingConfiguration in interface org.axonframework.config.Configuration@Bean public org.axonframework.commandhandling.gateway.CommandGateway commandGateway(org.axonframework.commandhandling.CommandBus commandBus)
commandBus - the command bus to be used by the gateway@Bean public org.axonframework.queryhandling.QueryGateway queryGateway(org.axonframework.queryhandling.QueryBus queryBus)
public <T> org.axonframework.modelling.command.Repository<T> repository(Class<T> aggregateType)
repository in interface org.axonframework.config.Configurationpublic <T> T getComponent(Class<T> componentType, Supplier<T> defaultImpl)
getComponent in interface org.axonframework.config.Configurationpublic <M extends org.axonframework.messaging.Message<?>> org.axonframework.monitoring.MessageMonitor<? super M> messageMonitor(Class<?> componentType, String componentName)
messageMonitor in interface org.axonframework.config.Configurationpublic org.axonframework.serialization.Serializer eventSerializer()
eventSerializer in interface org.axonframework.config.Configurationpublic org.axonframework.serialization.Serializer messageSerializer()
messageSerializer in interface org.axonframework.config.Configurationpublic List<org.axonframework.messaging.correlation.CorrelationDataProvider> correlationDataProviders()
correlationDataProviders in interface org.axonframework.config.Configurationpublic org.axonframework.messaging.annotation.HandlerDefinition handlerDefinition(Class<?> inspectedType)
handlerDefinition in interface org.axonframework.config.Configurationpublic org.axonframework.serialization.upcasting.event.EventUpcasterChain upcasterChain()
upcasterChain in interface org.axonframework.config.Configurationpublic List<org.axonframework.config.ModuleConfiguration> getModules()
getModules in interface org.axonframework.config.Configurationpublic void onStart(int phase,
org.axonframework.config.LifecycleHandler startHandler)
onStart in interface org.axonframework.config.Configurationpublic void onShutdown(int phase,
org.axonframework.config.LifecycleHandler shutdownHandler)
onShutdown in interface org.axonframework.config.Configurationpublic void start()
start in interface org.axonframework.config.Configurationstart in interface org.springframework.context.Lifecyclepublic void shutdown()
shutdown in interface org.axonframework.config.Configurationpublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010–2020. All rights reserved.