类 AutowireCandidateQualifier

    • 构造器详细资料

      • 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.