接口 DecoratingProxy
public interface DecoratingProxy
Interface to be implemented by decorating proxies, in particular AOP
proxies but potentially also custom proxies with decorator semantics.
Note that this interface should just be implemented if the decorated class is not within the hierarchy of the proxy class to begin with. In particular, a "target-class" proxy such as an AOP CGLIB proxy should not implement it since any lookup on the target class can simply be performed on the proxy class there anyway.
Defined in the core module in order to allow
OrderUtils
(and potential other candidates without aop dependencies) to use it
for introspection purposes, in particular annotation lookups.
- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller, TODAY 2021/3/9 17:59
-
方法概要
-
方法详细资料
-
getDecoratedClass
Class<?> getDecoratedClass()Return the (ultimate) decorated class behind this proxy.In case of an AOP proxy, this will be the ultimate target class, not just the immediate target (in case of multiple nested proxies).
- 返回:
- the decorated class (never
null)
-