Class RegisteredSynchronization
java.lang.Object
org.hibernate.resource.transaction.backend.jta.internal.synchronization.RegisteredSynchronization
- All Implemented Interfaces:
Synchronization
The JTA
Synchronization
Hibernate registers when needed for JTA callbacks.
Note that we split the notion of the registered Synchronization and the processing of the Synchronization callbacks mainly to account for "separation of concerns", but also so that the transaction engine does not have to hold reference to the actual Synchronization that gets registered with the JTA system.
-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredSynchronization
(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator) -
Method Summary
-
Constructor Details
-
RegisteredSynchronization
public RegisteredSynchronization(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator)
-
-
Method Details
-
beforeCompletion
public void beforeCompletion()- Specified by:
beforeCompletion
in interfaceSynchronization
-
afterCompletion
public void afterCompletion(int status) - Specified by:
afterCompletion
in interfaceSynchronization
-