@Immutable public final class CommandEventMulticaster extends Object implements CommandListener
| Constructor and Description |
|---|
CommandEventMulticaster(List<CommandListener> commandListeners)
Construct an instance with the given list of command listeners
|
| Modifier and Type | Method and Description |
|---|---|
void |
commandFailed(CommandFailedEvent event)
Listener for command failure events
|
void |
commandStarted(CommandStartedEvent event)
Listener for command started events.
|
void |
commandSucceeded(CommandSucceededEvent event)
Listener for command completed events
|
List<CommandListener> |
getCommandListeners()
Gets the command listeners.
|
public CommandEventMulticaster(List<CommandListener> commandListeners)
commandListeners - the non-null list of command listeners, none of which may be nullpublic List<CommandListener> getCommandListeners()
public void commandStarted(CommandStartedEvent event)
CommandListenercommandStarted in interface CommandListenerevent - the eventpublic void commandSucceeded(CommandSucceededEvent event)
CommandListenercommandSucceeded in interface CommandListenerevent - the eventpublic void commandFailed(CommandFailedEvent event)
CommandListenercommandFailed in interface CommandListenerevent - the event