public class FileTransaction extends Object
Modifier and Type | Field and Description |
---|---|
private List<AbstractTransactionEvent> |
events |
Constructor and Description |
---|
FileTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
void |
copyFile(File source,
File destination,
List<? extends org.codehaus.plexus.digest.Digester> digesters) |
void |
createFile(String content,
File destination,
List<? extends org.codehaus.plexus.digest.Digester> digesters) |
private void |
rollback(List<TransactionEvent> toRollback) |
private List<AbstractTransactionEvent> events
public FileTransaction()
public void commit() throws TransactionException
TransactionException
private void rollback(List<TransactionEvent> toRollback) throws IOException
IOException
public void copyFile(File source, File destination, List<? extends org.codehaus.plexus.digest.Digester> digesters)
source
- destination
- digesters
- List
<Digester
> digesters to use for checksummingpublic void createFile(String content, File destination, List<? extends org.codehaus.plexus.digest.Digester> digesters)
content
- destination
- digesters
- List
<Digester
> digesters to use for checksummingCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.