MessageHandlerLookup and MessageHandlerConfigurer.@Deprecated public class CommandHandlerSubscriber extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
CommandHandlerSubscriber()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase()
Deprecated.
|
boolean |
isAutoStartup()
Deprecated.
|
boolean |
isRunning()
Deprecated.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated.
|
void |
setCommandBus(CommandBus commandBus)
Deprecated.
Sets the command bus to use when subscribing command handlers.
|
void |
setCommandHandlers(Collection<MessageHandler> commandHandlers)
Deprecated.
Sets the command handlers to subscribe to the bus.
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
void |
stop(Runnable callback)
Deprecated.
|
public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setCommandBus(CommandBus commandBus)
commandBus - the command bus to use when subscribing handlerspublic void setCommandHandlers(Collection<MessageHandler> commandHandlers)
MessageHandler that can handle commands.commandHandlers - command handlers to subscribe to the command buspublic 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.PhasedgetPhase in interface org.springframework.context.SmartLifecycleCopyright © 2010–2023. All rights reserved.