public class TransactionScopeCleanup<T> extends Object implements Synchronization
Constructor and Description |
---|
TransactionScopeCleanup(TransactionContext context,
Transaction transaction) |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int i)
This method is invoked after the transaction has committed or
rolled back.
|
void |
beforeCompletion()
This method is invoked before the start of the commit
process.
|
void |
registerBean(<any> contextual,
<any> creationalContext,
T bean) |
public TransactionScopeCleanup(TransactionContext context, Transaction transaction)
public void registerBean(<any> contextual, <any> creationalContext, T bean)
public void beforeCompletion()
javax.transaction.Synchronization
beforeCompletion
in interface Synchronization
public void afterCompletion(int i)
javax.transaction.Synchronization
afterCompletion
in interface Synchronization
i
- The status of the completed transaction.Copyright © 2015 JBoss by Red Hat. All Rights Reserved.