接口 AopProxy
public interface AopProxy
Delegate interface for a configured AOP proxy, allowing for the creation
of actual proxy objects.
Out-of-the-box implementations are available for JDK dynamic proxies
and for CGLIB proxies, as applied by DefaultAopProxyFactory.
- 从以下版本开始:
- 3.0
- 作者:
- Rod Johnson, Juergen Hoeller, TODAY 2021/2/1 20:24
- 另请参阅:
-
方法概要
修饰符和类型方法说明default ObjectgetProxy()Create a new proxy object.getProxy(ClassLoader classLoader) Create a new proxy object.Class<?>getProxyClass(ClassLoader classLoader) Determine the proxy class.
-
方法详细资料
-
getProxy
Create a new proxy object.Uses the AopProxy's default class loader (if necessary for proxy creation): usually, the thread context class loader.
- 返回:
- the new proxy object (never
null) - 另请参阅:
-
getProxy
Create a new proxy object.Uses the given class loader (if necessary for proxy creation).
nullwill simply be passed down and thus lead to the low-level proxy facility's default, which is usually different from the default chosen by the AopProxy implementation'sgetProxy()method.- 参数:
classLoader- the class loader to create the proxy with (ornullfor the low-level proxy facility's default)- 返回:
- the new proxy object (never
null)
-
getProxyClass
Determine the proxy class.- 参数:
classLoader- the class loader to create the proxy class with (ornullfor the low-level proxy facility's default)- 返回:
- the proxy class
- 从以下版本开始:
- 4.0
-