Polish Javadoc for TransactionSynchronizationUtils
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user