Top Description Fields Constructors Methods
org.springframework.beans.factory.support

public Class AutowireCandidateQualifier

extends BeanMetadataAttributeAccessor
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.beans.BeanMetadataAttributeAccessor, org.springframework.util.Assert

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.
Authors
Mark Fisher, Juergen Hoeller
Since
2.5
See Also
org.springframework.beans.factory.annotation.Qualifier

Field Summary

Modifier and TypeField and Description
private final String
public static final String
VALUE_KEY

The name of the key used to store the value.

Constructor Summary

AccessConstructor and Description
public
AutowireCandidateQualifier(Class<?>
the annotation type
type
)

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

public
AutowireCandidateQualifier(String
the name of the annotation type
typeName
)

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

public
AutowireCandidateQualifier(Class<?>
the annotation type
type
,
Object
the annotation value to match
value
)

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

public
AutowireCandidateQualifier(String
the name of the annotation type
typeName
,
Object
the annotation value to match
value
)

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

Method Summary

Modifier and TypeMethod and Description
public String
getTypeName()

Retrieve the type name.

Inherited from org.springframework.beans.BeanMetadataAttributeAccessor:
addMetadataAttributegetAttributegetMetadataAttributegetSourceremoveAttributesetAttributesetSource

Field Detail

typeNameback to summary
private final String typeName
VALUE_KEYback to summary
public static final String VALUE_KEY

The name of the key used to store the value.

Constructor Detail

AutowireCandidateQualifierback to summary
public AutowireCandidateQualifier(Class<?> type)

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

Parameters
type:Class<?>

the annotation type

AutowireCandidateQualifierback to summary
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).

Parameters
typeName:String

the name of the annotation type

AutowireCandidateQualifierback to summary
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.

Parameters
type:Class<?>

the annotation type

value:Object

the annotation value to match

AutowireCandidateQualifierback to summary
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).

Parameters
typeName:String

the name of the annotation type

value:Object

the annotation value to match

Method Detail

getTypeNameback to summary
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.