Class AutowireCandidateQualifier
java.lang.Object
org.springframework.core.AttributeAccessorSupport
org.springframework.beans.BeanMetadataAttributeAccessor
org.springframework.beans.factory.support.AutowireCandidateQualifier
- All Implemented Interfaces:
- Serializable, BeanMetadataElement, AttributeAccessor
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.
- Since:
- 2.5
- Author:
- Mark Fisher, Juergen Hoeller
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionAutowireCandidateQualifier(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 whosevalueattribute 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 whosevalueattribute also matches the specified value.
- 
Method SummaryMethods inherited from class BeanMetadataAttributeAccessoraddMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSourceMethods inherited from class AttributeAccessorSupportattributeNames, computeAttribute, copyAttributesFrom, equals, hasAttribute, hashCode
- 
Field Details- 
VALUE_KEY
 
- 
- 
Constructor Details- 
AutowireCandidateQualifierConstruct a qualifier to match against an annotation of the given type.- Parameters:
- type- the annotation type
 
- 
AutowireCandidateQualifierConstruct 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). - Parameters:
- typeName- the name of the annotation type
 
- 
AutowireCandidateQualifier
- 
AutowireCandidateQualifierConstruct a qualifier to match against an annotation of the given type name whosevalueattribute 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). - Parameters:
- typeName- the name of the annotation type
- value- the annotation value to match
 
 
- 
- 
Method Details- 
getTypeNameRetrieve 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.
 
-