Class AbstractUndoable<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 element type
    All Implemented Interfaces:
    Command<CTX,RET,E>, Undoable<CTX,RET,E>

    public abstract class AbstractUndoable<CTX,RET,E extends java.lang.Exception>
    extends AbstractCommand<CTX,RET,E>
    implements Undoable<CTX,RET,E>
    The AbstractUndoable implements the Undoable interface.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isUndoable​(CTX aContext)
      This method determines whether the Undoable can undo the work it has done.
      void undo​(CTX aContext)
      This method tries to undo the Undoable in case it was successfully executed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractUndoable

        public AbstractUndoable()