public class CommandHandlerSubscriber extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
CommandHandlerSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCommandBus(org.axonframework.commandhandling.CommandBus commandBus) |
void |
setCommandHandlers(Collection<org.axonframework.messaging.MessageHandler> commandHandlers) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setCommandBus(org.axonframework.commandhandling.CommandBus commandBus)
public void setCommandHandlers(Collection<org.axonframework.messaging.MessageHandler> commandHandlers)
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedCopyright © 2010–2016. All rights reserved.