List of usage examples for org.springframework.transaction.support ResourceTransactionManager getResourceFactory
Object getResourceFactory();
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)); }