@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.eventhandling.EventBus |
eventBus() |
<T> T |
getComponent(Class<T> componentType,
Supplier<T> defaultImpl) |
List<org.axonframework.config.ModuleConfiguration> |
getModules() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
<M extends org.axonframework.messaging.Message<?>> |
messageMonitor(Class<?> componentType,
String componentName) |
void |
onShutdown(Runnable shutdownHandler) |
void |
onStart(Runnable startHandler) |
<T> org.axonframework.commandhandling.model.Repository<T> |
repository(Class<T> aggregateType) |
org.axonframework.eventhandling.saga.ResourceInjector |
resourceInjector() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
shutdown() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public AxonConfiguration(org.axonframework.config.Configurer configurer)
AxonConfiguration that uses the given configurer to build the configuration.configurer - configuration builder for the AxonConfiguration@Bean public org.axonframework.commandhandling.CommandBus commandBus()
commandBus in interface org.axonframework.config.Configuration@Bean public org.axonframework.eventhandling.EventBus eventBus()
eventBus in interface org.axonframework.config.Configurationpublic org.axonframework.eventhandling.saga.ResourceInjector resourceInjector()
resourceInjector 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 gatewaypublic <T> org.axonframework.commandhandling.model.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 List<org.axonframework.messaging.correlation.CorrelationDataProvider> correlationDataProviders()
correlationDataProviders in interface org.axonframework.config.Configurationpublic List<org.axonframework.config.ModuleConfiguration> getModules()
getModules in interface org.axonframework.config.Configurationpublic void onStart(Runnable startHandler)
onStart in interface org.axonframework.config.Configurationpublic void onShutdown(Runnable 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.Phasedpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010–2017. All rights reserved.