com.atlassian.sal.core.transaction
Class NoOpTransactionTemplate
java.lang.Object
com.atlassian.sal.core.transaction.NoOpTransactionTemplate
- All Implemented Interfaces:
- TransactionTemplate
public class NoOpTransactionTemplate
- extends Object
- implements TransactionTemplate
This provides a default implementation that doesn't actually run the action in a transaction at all.
This can be used in applications such as JIRA which don't support transactions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpTransactionTemplate
public NoOpTransactionTemplate()
execute
public Object execute(TransactionCallback action)
- Description copied from interface:
TransactionTemplate
- Executes the callback, returning the object returned. Any runtime exceptions thrown by the callback are assumed
to rollback the transaction.
- Specified by:
execute in interface TransactionTemplate
- Parameters:
action - The callback
- Returns:
- The object returned from the callback
Copyright © 2015 Atlassian. All rights reserved.