CTX- The context type to use, can by any
Component, service or POJO.
RET- The return type of the
E- The exception type of the
Undoable's erroneous termination.
|Modifier and Type||Method and Description|
This method determines whether the
This method tries to undo the
boolean isUndoable(CTX aContext)
Undoablecan undo the work it has done.
void undo(CTX aContext) throws NotUndoableRuntimeException, UnsupportedOperationException
Undoablein case it was successfully executed. Test via
isUndoable(Object)beforehand to see whether a call to
undo(Object)can be applied.
aContext- The target object which is used by the
Undoableto do its
NotUndoableRuntimeException- Thrown in case the performed operation cannot be undone, or no operation as been done before by this
UnsupportedOperationException- Thrown in case the
Undoabledoes not provide undo facilities.
Copyright © 2017. All rights reserved.