Browse Source

Polish Javadoc for TransactionSynchronizationUtils

pull/26478/head
Sam Brannen 5 years ago
parent
commit
2d29fcd0bb
  1. 5
      spring-tx/src/main/java/org/springframework/transaction/support/TransactionSynchronizationUtils.java

5
spring-tx/src/main/java/org/springframework/transaction/support/TransactionSynchronizationUtils.java

@ -48,7 +48,7 @@ public abstract class TransactionSynchronizationUtils {
* Check whether the given resource transaction manager refers to the given * Check whether the given resource transaction manager refers to the given
* (underlying) resource factory. * (underlying) resource factory.
* @see ResourceTransactionManager#getResourceFactory() * @see ResourceTransactionManager#getResourceFactory()
* @see org.springframework.core.InfrastructureProxy#getWrappedObject() * @see InfrastructureProxy#getWrappedObject()
*/ */
public static boolean sameResourceFactory(ResourceTransactionManager tm, Object resourceFactory) { public static boolean sameResourceFactory(ResourceTransactionManager tm, Object resourceFactory) {
return unwrapResourceIfNecessary(tm.getResourceFactory()).equals(unwrapResourceIfNecessary(resourceFactory)); return unwrapResourceIfNecessary(tm.getResourceFactory()).equals(unwrapResourceIfNecessary(resourceFactory));
@ -58,7 +58,8 @@ public abstract class TransactionSynchronizationUtils {
* Unwrap the given resource handle if necessary; otherwise return * Unwrap the given resource handle if necessary; otherwise return
* the given handle as-is. * the given handle as-is.
* @since 5.3.4 * @since 5.3.4
* @see org.springframework.core.InfrastructureProxy#getWrappedObject() * @see InfrastructureProxy#getWrappedObject()
* @see ScopedProxyUnwrapper#unwrapIfNecessary(Object)
*/ */
public static Object unwrapResourceIfNecessary(Object resource) { public static Object unwrapResourceIfNecessary(Object resource) {
Assert.notNull(resource, "Resource must not be null"); Assert.notNull(resource, "Resource must not be null");

Loading…
Cancel
Save