de.intarsys.tools.transaction.file
Class FileSystemResource
java.lang.Object
de.intarsys.tools.transaction.CommonResource
de.intarsys.tools.transaction.file.FileSystemResource
- All Implemented Interfaces:
- IResource, Serializable
public class FileSystemResource
- extends CommonResource
This IResource manages changes on the file system.
- See Also:
- Serialized Form
commit
public void commit()
throws ResourceException
- Description copied from interface:
IResource
- commit is performed when the
ITransaction containing the
IResource is committed.
- Specified by:
commit in interface IResource- Overrides:
commit in class CommonResource
- Throws:
ResourceException
onRollback
public void onRollback(IFunctor rollback)
onRollbackDelete
public void onRollbackDelete(File file)
onRollbackMove
public void onRollbackMove(File source,
File destination)
rollback
public void rollback()
throws ResourceException
- Description copied from interface:
IResource
- rollback is performed when the
ITransaction containing the
IResource is rolled back.
- Specified by:
rollback in interface IResource- Overrides:
rollback in class CommonResource
- Throws:
ResourceException
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.