org.springframework.beans.factory.support

## 类 AutowireCandidateQualifier

- java.lang.Object
- - org.springframework.core.AttributeAccessorSupport
  - - org.springframework.beans.BeanMetadataAttributeAccessor
    - - org.springframework.beans.factory.support.AutowireCandidateQualifier

- 所有已实现的接口:
    Serializable, BeanMetadataElement, org.springframework.core.AttributeAccessor

      public class AutowireCandidateQualifier
      extends BeanMetadataAttributeAccessor

  Qualifier for resolving autowire candidates. A bean definition that includes one or more such qualifiers enables fine-grained matching against annotations on a field or parameter to be autowired.
  从以下版本开始:
    2.5
  作者:
    Mark Fisher, Juergen Hoeller
  另请参阅:
    `Qualifier`, 序列化表格

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `VALUE_KEY`

  - ### 构造器概要

    构造器
    构造器和说明
    `AutowireCandidateQualifier(Class<?> type)` Construct a qualifier to match against an annotation of the given type.
    `AutowireCandidateQualifier(Class<?> type, Object value)` Construct a qualifier to match against an annotation of the given type whose `value` attribute also matches the specified value.
    `AutowireCandidateQualifier(String typeName)` Construct a qualifier to match against an annotation of the given type name.
    `AutowireCandidateQualifier(String typeName, Object value)` Construct a qualifier to match against an annotation of the given type name whose `value` attribute also matches the specified value.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getTypeName()` Retrieve the type name.

    - ### 从类继承的方法 org.springframework.beans.BeanMetadataAttributeAccessor

      `addMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSource`

    - ### 从类继承的方法 org.springframework.core.AttributeAccessorSupport

      `attributeNames, copyAttributesFrom, equals, hasAttribute, hashCode`

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

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

- - ### 字段详细资料

    - #### VALUE_KEY

          public static final String VALUE_KEY

      另请参阅:
        常量字段值

  - ### 构造器详细资料

    - #### AutowireCandidateQualifier

          public AutowireCandidateQualifier(Class<?> type)

      Construct a qualifier to match against an annotation of the given type.
      参数:
        `type` - the annotation type

    - #### AutowireCandidateQualifier

          public AutowireCandidateQualifier(String typeName)

      Construct a qualifier to match against an annotation of the given type name.

      The type name may match the fully-qualified class name of the annotation or the short class name (without the package).

      参数:
        `typeName` - the name of the annotation type

    - #### AutowireCandidateQualifier

          public AutowireCandidateQualifier(Class<?> type,
                                            Object value)

      Construct a qualifier to match against an annotation of the given type whose `value` attribute also matches the specified value.
      参数:
        `type` - the annotation type
        `value` - the annotation value to match

    - #### AutowireCandidateQualifier

          public AutowireCandidateQualifier(String typeName,
                                            Object value)

      Construct a qualifier to match against an annotation of the given type name whose `value` attribute also matches the specified value.

      The type name may match the fully-qualified class name of the annotation or the short class name (without the package).

      参数:
        `typeName` - the name of the annotation type
        `value` - the annotation value to match

  - ### 方法详细资料

    - #### getTypeName

          public String getTypeName()

      Retrieve the type name. This value will be the same as the type name provided to the constructor or the fully-qualified class name if a Class instance was provided to the constructor.