Class JtaAfterCompletionSynchronization
java.lang.Object
org.springframework.transaction.jta.JtaAfterCompletionSynchronization
- All Implemented Interfaces:
Synchronization
Adapter for a JTA Synchronization, invoking the
afterCommit
/
afterCompletion
callbacks of Spring TransactionSynchronization
objects callbacks after the outer JTA transaction has completed.
Applied when participating in an existing (non-Spring) JTA transaction.- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionJtaAfterCompletionSynchronization
(List<TransactionSynchronization> synchronizations) Create a new JtaAfterCompletionSynchronization for the given synchronization objects. -
Method Summary
-
Constructor Details
-
JtaAfterCompletionSynchronization
Create a new JtaAfterCompletionSynchronization for the given synchronization objects.- Parameters:
synchronizations
- the List of TransactionSynchronization objects- See Also:
-
-
Method Details
-
beforeCompletion
public void beforeCompletion()- Specified by:
beforeCompletion
in interfaceSynchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletion
in interfaceSynchronization
-