Class AbstractUndoable<CTX,RET,E extends Exception>
java.lang.Object
org.refcodes.command.AbstractCommand<CTX,RET,E>
org.refcodes.command.AbstractUndoable<CTX,RET,E>
- Type Parameters:
CTX- The context type to use, can by anyComponent, service or POJO.RET- The return type of theUndoable's proceedings.E- the element type
public abstract class AbstractUndoable<CTX,RET,E extends Exception>
extends AbstractCommand<CTX,RET,E>
implements Undoable<CTX,RET,E>
The
AbstractUndoable implements the Undoable interface.-
Constructor Details
-
AbstractUndoable
public AbstractUndoable()
-
-
Method Details
-
isUndoable
This method determines whether theUndoablecan undo the work it has done. -
undo
This method tries to undo theUndoablein case it was successfully executed. Test viaUndoable.isUndoable(Object)beforehand to see whether a call toUndoable.undo(Object)can be applied.
-