@Immutable public final class CommandEventMulticaster extends java.lang.Object implements CommandListener
Modifier and Type | Field and Description |
---|---|
private java.util.List<CommandListener> |
commandListeners |
private static Logger |
LOGGER |
Constructor and Description |
---|
CommandEventMulticaster(java.util.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
|
java.util.List<CommandListener> |
getCommandListeners()
Gets the command listeners.
|
private static final Logger LOGGER
private final java.util.List<CommandListener> commandListeners
public CommandEventMulticaster(java.util.List<CommandListener> commandListeners)
commandListeners
- the non-null list of command listeners, none of which may be nullpublic java.util.List<CommandListener> getCommandListeners()
public void commandStarted(CommandStartedEvent event)
CommandListener
commandStarted
in interface CommandListener
event
- the eventpublic void commandSucceeded(CommandSucceededEvent event)
CommandListener
commandSucceeded
in interface CommandListener
event
- the eventpublic void commandFailed(CommandFailedEvent event)
CommandListener
commandFailed
in interface CommandListener
event
- the event