|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.core.ConfluenceSynchronizationManager
public class ConfluenceSynchronizationManager
Confluence transaction sycnhronization manager. Uses Spring for transaction management.
Constructor Summary | |
---|---|
ConfluenceSynchronizationManager()
|
Method Summary | |
---|---|
static ConfluenceSynchronizationManager |
getInstance()
|
java.util.List |
getSynchronizations()
Return an unmodifiable snapshot list of all registered synchronizations for the current thread. |
boolean |
isTransactionActive()
|
void |
registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
Registers a Spring TransactionSynchronization on the current transaction. |
void |
runOnSuccessfulCommit(java.lang.Runnable task)
Register a task to be run once the current transaction is successfully committed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceSynchronizationManager()
Method Detail |
---|
public static ConfluenceSynchronizationManager getInstance()
public void runOnSuccessfulCommit(java.lang.Runnable task)
Register a task to be run once the current transaction is successfully committed. If no transaction exists the task is run immediately. All tasks are run on the thread which registered them.
If a task produces an exception it is logged and swallowed.
runOnSuccessfulCommit
in interface SynchronizationManager
SynchronizationManager.isTransactionActive()
public boolean isTransactionActive()
isTransactionActive
in interface SynchronizationManager
public void registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
SynchronizationManager
TransactionSynchronization
on the current transaction.
registerSynchronization
in interface SynchronizationManager
public java.util.List getSynchronizations()
SynchronizationManager
getSynchronizations
in interface SynchronizationManager
TransactionSynchronization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |