Example usage for org.hibernate.engine.transaction.jta.platform.internal SynchronizationRegistryAccess SynchronizationRegistryAccess

List of usage examples for org.hibernate.engine.transaction.jta.platform.internal SynchronizationRegistryAccess SynchronizationRegistryAccess

Introduction

In this page you can find the example usage for org.hibernate.engine.transaction.jta.platform.internal SynchronizationRegistryAccess SynchronizationRegistryAccess.

Prototype

SynchronizationRegistryAccess

Source Link

Usage

From source file:org.jboss.as.jpa.hibernate4.JBossAppServerJtaPlatform.java

License:Open Source License

public JBossAppServerJtaPlatform(final JtaManager jtaManager) {
    this.jtaManager = jtaManager;
    this.synchronizationStrategy = new SynchronizationRegistryBasedSynchronizationStrategy(
            new SynchronizationRegistryAccess() {
                @Override/*w w  w. java  2  s .com*/
                public TransactionSynchronizationRegistry getSynchronizationRegistry() {
                    return jtaManager.getSynchronizationRegistry();
                }
            });
}