Interface Undoable<CTX,RET,E extends java.lang.Exception>

  • Type Parameters:
    CTX - The context type to use, can by any Component, service or POJO.
    RET - The return type of the Undoable's proceedings.
    E - The exception type of the Undoable's erroneous termination.
    All Superinterfaces:
    All Known Implementing Classes:

    public interface Undoable<CTX,RET,E extends java.lang.Exception>
    extends Command<CTX,RET,E>
    An Undoable is a Command) which also provides means to undo its operation applied before. The Undoable is created by a client (e.g. the business logic) and passed to something like a command-bus or command-processor for execution.
    • Method Detail

      • isUndoable

        boolean isUndoable​(CTX aContext)
        This method determines whether the Undoable can undo the work it has done.
        aContext - The target object which is used by the Undoable to do its Undoable.
        True if undoable.