| Constructor and Description |
|---|
Qualifiers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Qualifier<T> |
byAnnotation(Annotation annotation)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byAnnotation(AnnotationMetadata metadata,
Class<? extends Annotation> type)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byAnnotation(AnnotationMetadata metadata,
String type)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byName(String name)
Build a qualifier for the given name.
|
static <T> Qualifier<T> |
byQualifiers(Qualifier<T>... qualifiers)
Build a qualifier from other qualifiers.
|
static <T> Qualifier<T> |
byStereotype(Class<? extends Annotation> stereotype)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byType(Class... typeArguments)
Build a qualifier for the given generic type arguments.
|
static <T> Qualifier<T> |
byTypeArguments(Class... typeArguments)
Build a qualifier for the given generic type arguments.
|
static <T> Qualifier<T> |
byTypeArgumentsClosest(Class... typeArguments)
Build a qualifier for the given generic type arguments.
|
public static <T> Qualifier<T> byQualifiers(Qualifier<T>... qualifiers)
T - The component typequalifiers - The qualifierspublic static <T> Qualifier<T> byName(String name)
T - The component typename - The namepublic static <T> Qualifier<T> byAnnotation(Annotation annotation)
T - The component typeannotation - The annotationpublic static <T> Qualifier<T> byAnnotation(AnnotationMetadata metadata, Class<? extends Annotation> type)
T - The component typemetadata - The metadatatype - The annotation typepublic static <T> Qualifier<T> byAnnotation(AnnotationMetadata metadata, String type)
Build a qualifier for the given annotation. This qualifier will match a candidate under the following circumstances:
T - The component typemetadata - The metadatatype - The annotation typepublic static <T> Qualifier<T> byStereotype(Class<? extends Annotation> stereotype)
T - The component typestereotype - The stereotypepublic static <T> Qualifier<T> byTypeArguments(Class... typeArguments)
T - The component typetypeArguments - The generic type argumentspublic static <T> Qualifier<T> byTypeArgumentsClosest(Class... typeArguments)
T - The component typetypeArguments - The generic type arguments