Number of active mappings on this Command Map instance.
Implementation of a routine how individual command instance is created. (This functionality may be overridden by sub classes)
Map event notification to a command class.
String event name which will tiger execution of a command.
Command class which should implement Command
interface or, at least,
should have execute method defined with same signature.
data object which describes mapping and can be used to set command execution only once; or null in case if mapping of requested event type is already mapped to class instance.
Trigger all commands which are mapped to this event.
Event object that defines event type and data
Trigger all commands which are mapped to event name.
String event name commands mapped to which must be invoked.
Arbitrary data to be passed along with command invocation.
Remove all command mappings from all event type.
which indicates if the unMapping has been successful.
Remove all command mappings for the specified event type.
Event name which is mapped to a command.
which indicates if the unMapping has been successful.
Remove event type to command mapping.
Event name which is mapped to a command.
Event command class which should be unmapped.
which indicates if the unMapping has been successful.
Event command map describes event name to command class mappings and is useful as small pieces of control code should be executed upon some event notification.
Jānis Radiņš / Kristaps Peļņa