Class RegisteredSynchronization
- java.lang.Object
-
- org.hibernate.resource.transaction.backend.jta.internal.synchronization.RegisteredSynchronization
-
- All Implemented Interfaces:
Synchronization
public class RegisteredSynchronization extends Object implements Synchronization
The JTASynchronization
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
Constructors Constructor Description RegisteredSynchronization(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCompletion(int status)
void
beforeCompletion()
-
-
-
Constructor Detail
-
RegisteredSynchronization
public RegisteredSynchronization(SynchronizationCallbackCoordinator synchronizationCallbackCoordinator)
-
-
Method Detail
-
beforeCompletion
public void beforeCompletion()
- Specified by:
beforeCompletion
in interfaceSynchronization
-
afterCompletion
public void afterCompletion(int status)
- Specified by:
afterCompletion
in interfaceSynchronization
-
-