intarsys runtime library

de.intarsys.tools.transaction.file
Class FileSystemResource

java.lang.Object
  extended by de.intarsys.tools.transaction.CommonResource
      extended by 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

Method Summary
 void commit()
          commit is performed when the ITransaction containing the IResource is committed.
 void onRollback(IFunctor rollback)
           
 void onRollbackDelete(File file)
           
 void onRollbackMove(File source, File destination)
           
 void rollback()
          rollback is performed when the ITransaction containing the IResource is rolled back.
 
Methods inherited from class de.intarsys.tools.transaction.CommonResource
begin, getParent, getType, resume, suspend
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.