public class Qualifiers
extends java.lang.Object
Bean
qualifiers.Constructor and Description |
---|
Qualifiers() |
Modifier and Type | Method and Description |
---|---|
static <T> Qualifier<T> |
byAnnotation(java.lang.annotation.Annotation annotation)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byAnnotation(AnnotationMetadata metadata,
java.lang.Class<? extends java.lang.annotation.Annotation> type)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byAnnotation(AnnotationMetadata metadata,
java.lang.String type)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byName(java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Build a qualifier for the given annotation.
|
static <T> Qualifier<T> |
byType(java.lang.Class... typeArguments)
Build a qualifier for the given generic type arguments.
|
static <T> Qualifier<T> |
byTypeArguments(java.lang.Class... typeArguments)
Build a qualifier for the given generic type arguments.
|
static <T> Qualifier<T> |
byTypeArgumentsClosest(java.lang.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(java.lang.String name)
T
- The component typename
- The namepublic static <T> Qualifier<T> byAnnotation(java.lang.annotation.Annotation annotation)
T
- The component typeannotation
- The annotationpublic static <T> Qualifier<T> byAnnotation(AnnotationMetadata metadata, java.lang.Class<? extends java.lang.annotation.Annotation> type)
T
- The component typemetadata
- The metadatatype
- The annotation typepublic static <T> Qualifier<T> byAnnotation(AnnotationMetadata metadata, java.lang.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(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
T
- The component typestereotype
- The stereotypepublic static <T> Qualifier<T> byTypeArguments(java.lang.Class... typeArguments)
T
- The component typetypeArguments
- The generic type argumentspublic static <T> Qualifier<T> byTypeArgumentsClosest(java.lang.Class... typeArguments)
T
- The component typetypeArguments
- The generic type argumentspublic static <T> Qualifier<T> byType(java.lang.Class... typeArguments)
T
- The component typetypeArguments
- The generic type arguments