public class FileSystemResource extends CommonResource
IResource manages changes on the file system.| Modifier and Type | Method and Description |
|---|---|
void |
commit()
commit is performed when the
ITransaction containing the
IResource is committed. |
void |
onCommit(IFunctor action) |
void |
onRollback(IFunctor action) |
void |
onRollbackDelete(File file) |
void |
onRollbackMove(File source,
File destination) |
void |
recordChange(File file) |
void |
rollback()
rollback is performed when the
ITransaction containing the
IResource is rolled back. |
begin, getCounter, getId, getParent, getType, resume, setCounter, suspendpublic void commit()
throws ResourceException
IResourceITransaction containing the
IResource is committed.commit in interface IResourcecommit in class CommonResourceResourceExceptionpublic void onCommit(IFunctor action)
public void onRollback(IFunctor action)
public void onRollbackDelete(File file)
public void recordChange(File file) throws IOException
IOExceptionpublic void rollback()
throws ResourceException
IResourceITransaction containing the
IResource is rolled back.rollback in interface IResourcerollback in class CommonResourceResourceExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.