This project has retired. For details please refer to its
Attic page.
CreateFileEvent
org.apache.maven.archiva.transaction
Class CreateFileEvent
java.lang.Object
org.apache.maven.archiva.transaction.AbstractTransactionEvent
org.apache.maven.archiva.transaction.CreateFileEvent
- All Implemented Interfaces:
- TransactionEvent
public class CreateFileEvent
- extends AbstractTransactionEvent
Event for creating a file from a string content.
Constructor Summary |
CreateFileEvent(java.lang.String content,
java.io.File destination,
java.util.List<org.codehaus.plexus.digest.Digester> digesters)
|
Method Summary |
void |
commit()
Commit this event. |
void |
rollback()
Rollback the even already committed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateFileEvent
public CreateFileEvent(java.lang.String content,
java.io.File destination,
java.util.List<org.codehaus.plexus.digest.Digester> digesters)
- Parameters:
content
- destination
- digesters
- List
<Digester
> digesters to use for checksumming
commit
public void commit()
throws java.io.IOException
- Description copied from interface:
TransactionEvent
- Commit this event.
- Throws:
java.io.IOException
- if an error occurred committing the change
rollback
public void rollback()
throws java.io.IOException
- Description copied from interface:
TransactionEvent
- Rollback the even already committed.
- Throws:
java.io.IOException
- if an error occurred reverting the change