org.springframework.roo.file.undo
Interface UndoableOperation

All Known Implementing Classes:
CreateDirectory, CreateFile, DeleteDirectory, DeleteFile, UpdateFile

public interface UndoableOperation

An operation than can be undone by UndoManager.

An UndoableOperation is NOT permitted to throw any exception at any time. It should log any error conditions to the Logger only.

Since:
1.0
Author:
Ben Alex

Method Summary
 void reset()
          Release any temporary resources consumed by the UndoableOperation.
 boolean undo()
          Attempt to undo the changes, and release any resources consumed.
 

Method Detail

undo

boolean undo()
Attempt to undo the changes, and release any resources consumed.

No exceptions may be thrown.

Returns:
whether the undo was successful or not

reset

void reset()
Release any temporary resources consumed by the UndoableOperation.

No exceptions may be thrown.



Copyright © 2009-2010 VMware, Inc. All Rights Reserved.