|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.AttributeAccessorSupport org.springframework.beans.BeanMetadataAttributeAccessor org.springframework.beans.factory.support.AutowireCandidateQualifier
public class AutowireCandidateQualifier
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.
Qualifier
,
Serialized FormField Summary | |
---|---|
static String |
VALUE_KEY
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
String |
getTypeName()
Retrieve the type name. |
Methods inherited from class org.springframework.beans.BeanMetadataAttributeAccessor |
---|
addMetadataAttribute, getAttribute, getMetadataAttribute, getSource, removeAttribute, setAttribute, setSource |
Methods inherited from class org.springframework.core.AttributeAccessorSupport |
---|
attributeNames, copyAttributesFrom, equals, hasAttribute, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String VALUE_KEY
Constructor Detail |
---|
public AutowireCandidateQualifier(Class type)
type
- the annotation typepublic AutowireCandidateQualifier(String typeName)
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 typepublic AutowireCandidateQualifier(Class type, Object value)
value
attribute also matches
the specified value.
type
- the annotation typevalue
- the annotation value to matchpublic AutowireCandidateQualifier(String typeName, Object value)
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 typevalue
- the annotation value to matchMethod Detail |
---|
public String getTypeName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |