- All Superinterfaces:
- Annotation,- Comparable<Annotation>,- Prototype.Api
- All Known Implementing Classes:
- Qualifier.BuilderBase.QualifierImpl
Represents a qualifier annotation (a specific case of annotations, annotated with
 
Service.Qualifier).- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forQualifier.static classQualifier.BuilderBase<BUILDER extends Qualifier.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends Qualifier> Fluent API builder base forQualifier.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final QualifierRepresents a qualifier used for injecting name ofService.PerInstanceinstances.static final QualifierRepresents an instance named with the default name: "@default".static final StringThe "value" property name.static final QualifierRepresents a wildcardService.Namedqualifier.
- 
Method SummaryModifier and TypeMethodDescriptiondefault Optional<Annotation> Typed value of the property "value".default Optional<Annotation> annotationValue(String property) Typed value of a named property.default Optional<List<Annotation>> Typed value of the property "value" that is defined as an array.default Optional<List<Annotation>> annotationValues(String property) Typed values of a property that is defined as an array.Typed value of the property "value".booleanValue(String property) Typed value of a named property.Typed value of the property "value" that is defined as an array.booleanValues(String property) Typed values of a property that is defined as an array.static Qualifier.Builderbuilder()Create a new fluent API builder to customize configuration.static Qualifier.BuilderCreate a new fluent API builder from an existing instance.Typed value of the property "value".Typed value of a named property.Typed value of the property "value" that is defined as an array.byteValues(String property) Typed values of a property that is defined as an array.Typed value of the property "value".Typed value of a named property.Typed value of the property "value" that is defined as an array.charValues(String property) Typed values of a property that is defined as an array.Typed value of the property "value".classValue(String property) Typed value of a named property.Typed value of the property "value" that is defined as an array.classValues(String property) Typed values of a property that is defined as an array.static Qualifiercreate()Create a new instance with default values.static Qualifiercreate(Annotation annotation) Creates a qualifier from an annotation.static QualifierCreates a qualifier from an annotation.static QualifierCreates a qualifier with a value from an annotation.static Qualifiercreate(Class<? extends Annotation> qualifierType) Creates a qualifier from an annotation.static Qualifiercreate(Class<? extends Annotation> qualifierType, String value) Creates a qualifier with a value from an annotation.static QualifiercreateNamed(Service.Named name) Creates aService.Namedqualifier.static QualifierCreates aService.Namedqualifier.static QualifiercreateNamed(Class<?> className) Creates aService.Namedqualifier from a class name.static QualifiercreateNamed(String name) Creates aService.Namedqualifier.Typed value of the property "value".doubleValue(String property) Typed value of a named property.Typed value of the property "value" that is defined as an array.doubleValues(String property) Typed values of a property that is defined as an array.Typed value of the property "value".Typed value of a named property.enumValues(Class<T> type) Typed value of the property "value" that is defined as an array.enumValues(String property, Class<T> type) Typed values of a property that is defined as an array.Typed value of the property "value".floatValue(String property) Typed value of a named property.Typed value of the property "value" that is defined as an array.floatValues(String property) Typed values of a property that is defined as an array.Get a value of an annotation property.default booleanhasMetaAnnotation(TypeName annotationType) Check ifAnnotationBlueprint.metaAnnotations()contains an annotation of the provided type.intValue()Typed value of the property "value".Typed value of a named property.Typed value of the property "value" that is defined as an array.Typed values of a property that is defined as an array.Typed value of the property "value".Typed value of a named property.Typed value of the property "value" that is defined as an array.longValues(String property) Typed values of a property that is defined as an array.A list of inherited annotations (from the whole hierarchy).Value of the annotation as an object.objectValue(String property) Value of the annotation property as an object.List of properties defined on this annotation.default Optional<AnnotationProperty> property()Annotation property for the "value" property.default Optional<AnnotationProperty> Annotation property for the defined name.Typed value of the property "value".shortValue(String property) Typed value of a named property.Typed value of the property "value" that is defined as an array.shortValues(String property) Typed values of a property that is defined as an array.Typed value of the property "value".stringValue(String property) Typed value of a named property.Typed value of the property "value" that is defined as an array.stringValues(String property) Typed values of a property that is defined as an array.typeName()The type name, e.g.,Objects-> "java.util.Objects".Typed value of the property "value".Typed value of a named property.Typed value of the property "value" that is defined as an array.typeValues(String property) Typed values of a property that is defined as an array.value()The value property.values()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface java.lang.ComparablecompareTo
- 
Field Details- 
CREATE_FOR_NAMERepresents a qualifier used for injecting name ofService.PerInstanceinstances.
- 
DEFAULT_NAMEDRepresents an instance named with the default name: "@default".
- 
WILDCARD_NAMEDRepresents a wildcardService.Namedqualifier.
- 
VALUE_PROPERTYThe "value" property name.- See Also:
 
 
- 
- 
Method Details- 
builderCreate a new fluent API builder to customize configuration.- Returns:
- a new builder
 
- 
builderCreate a new fluent API builder from an existing instance.- Parameters:
- instance- an existing instance used as a base for the builder
- Returns:
- a builder based on an instance
 
- 
createCreate a new instance with default values.- Returns:
- a new instance
 
- 
createCreates a qualifier from an annotation.- Parameters:
- qualifierType- the qualifier type
- Returns:
- qualifier
 
- 
createCreates a qualifier with a value from an annotation.- Parameters:
- qualifierType- the qualifier type
- value- the value property
- Returns:
- qualifier
 
- 
createCreates a qualifier from an annotation.- Parameters:
- qualifierType- the qualifier type
- Returns:
- qualifier
 
- 
createCreates a qualifier with a value from an annotation.- Parameters:
- qualifierType- the qualifier type
- value- the value property
- Returns:
- qualifier
 
- 
createCreates a qualifier from an annotation.- Parameters:
- annotation- the qualifier annotation
- Returns:
- qualifier
 
- 
createNamedCreates aService.Namedqualifier.- Parameters:
- name- the name
- Returns:
- named qualifier
 
- 
createNamedCreates aService.Namedqualifier.- Parameters:
- name- the name
- Returns:
- named qualifier
 
- 
createNamedCreates aService.Namedqualifier.- Parameters:
- name- the name
- Returns:
- named qualifier
 
- 
createNamedCreates aService.Namedqualifier from a class name.- Parameters:
- className- class whose name will be used
- Returns:
- named qualifier
 
- 
typeNameTypeName typeName()The type name, e.g.,Objects-> "java.util.Objects".- Returns:
- the annotation type name
 
- 
valuesDeprecated, for removal: This API element is subject to removal in a future version.useAnnotationBlueprint.properties()instead, and accessor methods on this interfaceGet a key-value of all the annotation properties.- Returns:
- key-value pairs of all the properties present
 
- 
propertiesMap<String,AnnotationProperty> properties()List of properties defined on this annotation.- Returns:
- properties
 
- 
metaAnnotationsList<Annotation> metaAnnotations()A list of inherited annotations (from the whole hierarchy).- Returns:
- list of all annotations declared on the annotation type, or inherited from them
 
- 
valueThe value property.- Returns:
- the string value of value property
 
- 
getValueGet a value of an annotation property.- Parameters:
- property- name of the annotation property
- Returns:
- string value of the property
 
- 
propertyAnnotation property for the "value" property.- Returns:
- annotation property
 
- 
propertyAnnotation property for the defined name.- Parameters:
- property- property name
- Returns:
- annotation property
 
- 
objectValueValue of the annotation as an object. The type can be either String, or any primitive type, orAnnotation, or list of these.- Returns:
- object value
 
- 
objectValueValue of the annotation property as an object. The type can be either String, or any primitive type, orAnnotation, or list of these.- Parameters:
- property- name of the annotation property
- Returns:
- object value
 
- 
stringValueTyped value of the property "value".- Returns:
- value if present
 
- 
stringValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
stringValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
stringValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
intValueTyped value of the property "value".- Returns:
- value if present
 
- 
intValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
intValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
intValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
longValueTyped value of the property "value".- Returns:
- value if present
 
- 
longValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
longValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
longValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
booleanValueTyped value of the property "value".- Returns:
- value if present
 
- 
booleanValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
booleanValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
booleanValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
byteValueTyped value of the property "value".- Returns:
- value if present
 
- 
byteValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
byteValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
byteValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
charValueTyped value of the property "value".- Returns:
- value if present
 
- 
charValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
charValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
charValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
shortValueTyped value of the property "value".- Returns:
- value if present
 
- 
shortValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
shortValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
shortValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
floatValueTyped value of the property "value".- Returns:
- value if present
 
- 
floatValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
floatValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
floatValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
doubleValueTyped value of the property "value".- Returns:
- value if present
 
- 
doubleValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
doubleValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
doubleValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
classValueTyped value of the property "value".- Returns:
- value if present
 
- 
classValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
classValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
classValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
typeValueTyped value of the property "value". Alternative forclassValue().- Returns:
- value if present
 
- 
typeValueTyped value of a named property. Alternative forclassValue(String).- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
typeValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property. Alternative forclassValues().- Returns:
- list of defined values if present
 
- 
typeValuesTyped values of a property that is defined as an array. This will also work for a single values property. Alternative forclassValues(String).- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
annotationValueTyped value of the property "value".- Returns:
- value if present
 
- 
annotationValueTyped value of a named property.- Parameters:
- property- name of the annotation property
- Returns:
- value if present
 
- 
annotationValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Returns:
- list of defined values if present
 
- 
annotationValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Parameters:
- property- name of the annotation property
- Returns:
- list of defined values if present
 
- 
enumValueTyped value of the property "value".- Type Parameters:
- T- type of the enumeration
- Parameters:
- type- class of the enumeration
- Returns:
- value if present
 
- 
enumValueTyped value of a named property.- Type Parameters:
- T- type of the enumeration
- Parameters:
- property- name of the annotation property
- type- class of the enumeration
- Returns:
- value if present
 
- 
enumValuesTyped value of the property "value" that is defined as an array. This will also work for a single values property.- Type Parameters:
- T- type of the enumeration
- Parameters:
- type- class of the enumeration
- Returns:
- list of defined values if present
 
- 
enumValuesTyped values of a property that is defined as an array. This will also work for a single values property.- Type Parameters:
- T- type of the enumeration
- Parameters:
- property- name of the annotation property
- type- class of the enumeration
- Returns:
- list of defined values if present
 
- 
hasMetaAnnotationCheck ifAnnotationBlueprint.metaAnnotations()contains an annotation of the provided type.Note: we ignore Target,Inherited,Documented, andRetention.- Parameters:
- annotationType- type of annotation
- Returns:
- trueif the annotation is declared on this annotation, or is inherited from a declared annotation
 
 
- 
AnnotationBlueprint.properties()instead, and accessor methods on this interface