org.springframework.beans.factory.annotation

## 类 InjectionMetadata.InjectedElement

- java.lang.Object
- - org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement

- 封闭类:
    InjectionMetadata

      public abstract static class InjectionMetadata.InjectedElement
      extends Object

  A single injected element.

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected boolean` | `isField`
    `protected Member` | `member`
    `protected PropertyDescriptor` | `pd`
    `protected Boolean` | `skip`

  - ### 构造器概要

    构造器
    限定符 | 构造器和说明
    --- | ---
    `protected` | `InjectedElement(Member member, PropertyDescriptor pd)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected boolean` | `checkPropertySkipping(PropertyValues pvs)` Check whether this injector's property needs to be skipped due to an explicit property value having been specified.
    `protected void` | `checkResourceType(Class<?> resourceType)`
    `protected void` | `clearPropertySkipping(PropertyValues pvs)` Clear property skipping for this element.
    `boolean` | `equals(Object other)`
    `Member` | `getMember()`
    `protected Object` | `getResourceToInject(Object target, String requestingBeanName)` Either this or `inject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)` needs to be overridden.
    `protected Class<?>` | `getResourceType()`
    `int` | `hashCode()`
    `protected void` | `inject(Object target, String requestingBeanName, PropertyValues pvs)` Either this or `getResourceToInject(java.lang.Object, java.lang.String)` needs to be overridden.
    `String` | `toString()`

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

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

- - ### 字段详细资料

    - #### member

          protected final Member member

    - #### isField

          protected final boolean isField

    - #### pd

          @Nullable
          protected final PropertyDescriptor pd

    - #### skip

          @Nullable
          protected volatile Boolean skip

  - ### 构造器详细资料

    - #### InjectedElement

          protected InjectedElement(Member member,
                                    @Nullable
                                    PropertyDescriptor pd)

  - ### 方法详细资料

    - #### getMember

          public final Member getMember()

    - #### getResourceType

          protected final Class<?> getResourceType()

    - #### checkResourceType

          protected final void checkResourceType(Class<?> resourceType)

    - #### inject

          protected void inject(Object target,
                                @Nullable
                                String requestingBeanName,
                                @Nullable
                                PropertyValues pvs)
                         throws Throwable

      Either this or `getResourceToInject(java.lang.Object, java.lang.String)` needs to be overridden.
      抛出:
        `Throwable`

    - #### checkPropertySkipping

          protected boolean checkPropertySkipping(@Nullable
                                                  PropertyValues pvs)

      Check whether this injector's property needs to be skipped due to an explicit property value having been specified. Also marks the affected property as processed for other processors to ignore it.

    - #### clearPropertySkipping

          protected void clearPropertySkipping(@Nullable
                                               PropertyValues pvs)

      Clear property skipping for this element.
      从以下版本开始:
        3.2.13

    - #### getResourceToInject

          @Nullable
          protected Object getResourceToInject(Object target,
                                                          @Nullable
                                                          String requestingBeanName)

      Either this or `inject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)` needs to be overridden.

    - #### equals

          public boolean equals(Object other)

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

    - #### hashCode

          public int hashCode()

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

    - #### toString

          public String toString()

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