接口 InfrastructureProxy


public interface InfrastructureProxy
Interface to be implemented by transparent resource proxies that need to be considered as equal to the underlying resource, for example for consistent lookup key comparisons. Note that this interface does imply such special semantics and does not constitute a general-purpose mixin!

Such wrappers will automatically be unwrapped for key comparisons in cn.taketoday.transaction.support.TransactionSynchronizationManager.

Only fully transparent proxies, e.g. for redirection or service lookups, are supposed to implement this interface. Proxies that decorate the target object with new behavior, such as AOP proxies, do not qualify here!

从以下版本开始:
4.0 2021/12/10 23:03
作者:
Juergen Hoeller, Harry Yang
另请参阅:
  • cn.taketoday.transaction.support.TransactionSynchronizationManager
  • 方法概要

    修饰符和类型
    方法
    说明
    Return the underlying resource (never null).
  • 方法详细资料

    • getWrappedObject

      Object getWrappedObject()
      Return the underlying resource (never null).