Class CommandHandlerSubscriber

java.lang.Object
org.axonframework.spring.config.CommandHandlerSubscriber
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

@Deprecated public class CommandHandlerSubscriber extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
Deprecated.
Registers Spring beans that implement both MessageHandler and SupportedCommandNamesAware with the command bus.
Since:
3.0
Author:
Allard Buijze
  • Constructor Details

    • CommandHandlerSubscriber

      public CommandHandlerSubscriber()
      Deprecated.
  • Method Details

    • setApplicationContext

      public void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Deprecated.
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • setCommandBus

      public void setCommandBus(CommandBus commandBus)
      Deprecated.
      Sets the command bus to use when subscribing command handlers. If not set the command bus is taken from Spring's application context.
      Parameters:
      commandBus - the command bus to use when subscribing handlers
    • setCommandHandlers

      public void setCommandHandlers(Collection<MessageHandler> commandHandlers)
      Deprecated.
      Sets the command handlers to subscribe to the bus. If not set the command handlers are taken from Spring's application context by scanning for beans of type MessageHandler that can handle commands.
      Parameters:
      commandHandlers - command handlers to subscribe to the command bus
    • isAutoStartup

      public boolean isAutoStartup()
      Deprecated.
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • stop

      public void stop(Runnable callback)
      Deprecated.
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle
    • start

      public void start()
      Deprecated.
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Deprecated.
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Deprecated.
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • getPhase

      public int getPhase()
      Deprecated.
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle