org.springframework.aop.target

## 类 EmptyTargetSource

- java.lang.Object
- - org.springframework.aop.target.EmptyTargetSource

- 所有已实现的接口:
    Serializable, TargetClassAware, TargetSource

      public class EmptyTargetSource
      extends Object
      implements TargetSource, Serializable

  Canonical `TargetSource` when there is no target (or just the target class known), and behavior is supplied by interfaces and advisors only.
  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    序列化表格

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static EmptyTargetSource` | `INSTANCE` The canonical (Singleton) instance of this `EmptyTargetSource`.

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object other)`
    `static EmptyTargetSource` | `forClass(Class<?> targetClass)` Return an EmptyTargetSource for the given target Class.
    `static EmptyTargetSource` | `forClass(Class<?> targetClass, boolean isStatic)` Return an EmptyTargetSource for the given target Class.
    `Object` | `getTarget()` Always returns `null`.
    `Class<?>` | `getTargetClass()` Always returns the specified target Class, or `null` if none.
    `int` | `hashCode()`
    `boolean` | `isStatic()` Always returns `true`.
    `void` | `releaseTarget(Object target)` Nothing to release.
    `String` | `toString()`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 字段详细资料

    - #### INSTANCE

          public static final EmptyTargetSource INSTANCE

      The canonical (Singleton) instance of this `EmptyTargetSource`.

  - ### 方法详细资料

    - #### forClass

          public static EmptyTargetSource forClass(@Nullable
                                                   Class<?> targetClass)

      Return an EmptyTargetSource for the given target Class.
      参数:
        `targetClass` - the target Class (may be `null`)
      另请参阅:
        `getTargetClass()`

    - #### forClass

          public static EmptyTargetSource forClass(@Nullable
                                                   Class<?> targetClass,
                                                   boolean isStatic)

      Return an EmptyTargetSource for the given target Class.
      参数:
        `targetClass` - the target Class (may be `null`)
        `isStatic` - whether the TargetSource should be marked as static
      另请参阅:
        `getTargetClass()`

    - #### getTargetClass

          @Nullable
          public Class<?> getTargetClass()

      Always returns the specified target Class, or `null` if none.
      指定者:
        `getTargetClass` 在接口中 `TargetClassAware`
      指定者:
        `getTargetClass` 在接口中 `TargetSource`
      返回:
        the type of targets returned by this `TargetSource`

    - #### isStatic

          public boolean isStatic()

      Always returns `true`.
      指定者:
        `isStatic` 在接口中 `TargetSource`
      返回:
        `true` if the target is immutable
      另请参阅:
        `TargetSource.getTarget()`

    - #### getTarget

          @Nullable
          public Object getTarget()

      Always returns `null`.
      指定者:
        `getTarget` 在接口中 `TargetSource`
      返回:
        the target object which contains the joinpoint, or `null` if there is no actual target instance

    - #### releaseTarget

          public void releaseTarget(Object target)

      Nothing to release.
      指定者:
        `releaseTarget` 在接口中 `TargetSource`
      参数:
        `target` - object obtained from a call to `TargetSource.getTarget()`

    - #### equals

          public boolean equals(Object other)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `Object`