Interface CommandEventListener

  • All Known Implementing Classes:
    TransactionStateUpdater

    public interface CommandEventListener
    This interface can be implemented by components that need to do processing before and/or after a command is executed. Command-event listeners need to be registered on the EventDispatcher before they will be invoked.
    • Method Detail

      • beforeCommandExecuted

        void beforeCommandExecuted​(Command cmd)
        This method is called before a command is executed, to allow listeners to perform before-command processing.
        Parameters:
        cmd - the command about to be executed
      • afterCommandExecuted

        void afterCommandExecuted​(Command cmd)
        This method is called after a command is executed, to allow listeners to perform after-command processing.
        Parameters:
        cmd - the command that was just executed