org.springframework.aop.framework

## 接口 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`.

  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    `DefaultAopProxyFactory`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `getProxy()` Create a new proxy object.
    `Object` | `getProxy(ClassLoader classLoader)` Create a new proxy object.

- - ### 方法详细资料

    - #### getProxy

          Object 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`)
      另请参阅:
        `Thread.getContextClassLoader()`

    - #### getProxy

          Object getProxy(@Nullable
                          ClassLoader classLoader)

      Create a new proxy object.

      Uses the given class loader (if necessary for proxy creation). `null` will 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's `getProxy()` method.

      参数:
        `classLoader` - the class loader to create the proxy with (or `null` for the low-level proxy facility's default)
      返回:
        the new proxy object (never `null`)