Package org.axonframework.spring.config
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
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetPhase()Deprecated.booleanDeprecated.booleanDeprecated.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Deprecated.voidsetCommandBus(org.axonframework.commandhandling.CommandBus commandBus) Deprecated.Sets the command bus to use when subscribing command handlers.voidsetCommandHandlers(Collection<org.axonframework.messaging.MessageHandler> commandHandlers) Deprecated.Sets the command handlers to subscribe to the bus.voidstart()Deprecated.voidstop()Deprecated.voidDeprecated.
-
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setCommandBus
public void setCommandBus(org.axonframework.commandhandling.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<org.axonframework.messaging.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 typeMessageHandlerthat can handle commands.- Parameters:
commandHandlers- command handlers to subscribe to the command bus
-
isAutoStartup
public boolean isAutoStartup()Deprecated.- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
Deprecated.- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
start
public void start()Deprecated.- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()Deprecated.- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()Deprecated.- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()Deprecated.- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
MessageHandlerLookupandMessageHandlerConfigurer.