Example usage for org.springframework.transaction.support ResourceTransactionManager getResourceFactory

List of usage examples for org.springframework.transaction.support ResourceTransactionManager getResourceFactory

Introduction

In this page you can find the example usage for org.springframework.transaction.support ResourceTransactionManager getResourceFactory.

Prototype

Object getResourceFactory();

Source Link

Document

Return the resource factory that this transaction manager operates on, e.g.

Usage

From source file:org.springframework.transaction.support.TransactionSynchronizationUtils.java

/**
 * Check whether the given resource transaction managers refers to the given
 * (underlying) resource factory./*w w  w .ja v  a2 s .c  om*/
 * @see ResourceTransactionManager#getResourceFactory()
 * @see org.springframework.core.InfrastructureProxy#getWrappedObject()
 */
public static boolean sameResourceFactory(ResourceTransactionManager tm, Object resourceFactory) {
    return unwrapResourceIfNecessary(tm.getResourceFactory())
            .equals(unwrapResourceIfNecessary(resourceFactory));
}