Class SynchronizationRegistryBasedSynchronizationStrategy
java.lang.Object
org.hibernate.engine.transaction.jta.platform.internal.SynchronizationRegistryBasedSynchronizationStrategy
- All Implemented Interfaces:
Serializable,JtaSynchronizationStrategy
public class SynchronizationRegistryBasedSynchronizationStrategy
extends Object
implements JtaSynchronizationStrategy
Implementation of the
JtaSynchronizationStrategy contract based on using a
TransactionSynchronizationRegistry- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSynchronizationRegistryBasedSynchronizationStrategy(SynchronizationRegistryAccess synchronizationRegistryAccess) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan a synchronization be registered?voidregisterSynchronization(Synchronization synchronization) Register a synchronization
-
Constructor Details
-
SynchronizationRegistryBasedSynchronizationStrategy
public SynchronizationRegistryBasedSynchronizationStrategy(SynchronizationRegistryAccess synchronizationRegistryAccess)
-
-
Method Details
-
registerSynchronization
Description copied from interface:JtaSynchronizationStrategyRegister a synchronization- Specified by:
registerSynchronizationin interfaceJtaSynchronizationStrategy- Parameters:
synchronization- The synchronization to register.
-
canRegisterSynchronization
public boolean canRegisterSynchronization()Description copied from interface:JtaSynchronizationStrategyCan a synchronization be registered?- Specified by:
canRegisterSynchronizationin interfaceJtaSynchronizationStrategy- Returns:
- true/false
-