Interface Qualifier
- 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 Summary
Nested 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 Summary
FieldsModifier 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 Summary
Static MethodsModifier and TypeMethodDescriptionstatic Qualifier.Builderbuilder()Create a new fluent API builder to customize configuration.static Qualifier.BuilderCreate a new fluent API builder from an existing instance.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.Methods inherited from interface Annotation
annotationValue, annotationValue, annotationValues, annotationValues, booleanValue, booleanValue, booleanValues, booleanValues, byteValue, byteValue, byteValues, byteValues, charValue, charValue, charValues, charValues, classValue, classValue, classValues, classValues, compareTo, doubleValue, doubleValue, doubleValues, doubleValues, enumValue, enumValue, enumValues, enumValues, floatValue, floatValue, floatValues, floatValues, getValue, hasMetaAnnotation, intValue, intValue, intValues, intValues, longValue, longValue, longValues, longValues, metaAnnotations, objectValue, objectValue, originatingElement, properties, property, property, shortValue, shortValue, shortValues, shortValues, stringValue, stringValue, stringValues, stringValues, typeName, typeValue, typeValue, typeValues, typeValues, valueModifier 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.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.default intTyped 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 ifAnnotation.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.The element used to create this instance.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.
-
Field Details
-
CREATE_FOR_NAME
Represents a qualifier used for injecting name ofService.PerInstanceinstances. -
DEFAULT_NAMED
Represents an instance named with the default name: "@default". -
WILDCARD_NAMED
Represents a wildcardService.Namedqualifier. -
VALUE_PROPERTY
-
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create 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
-
create
-
create
Creates a qualifier from an annotation.- Parameters:
qualifierType- the qualifier type- Returns:
- qualifier
-
create
Creates a qualifier with a value from an annotation.- Parameters:
qualifierType- the qualifier typevalue- the value property- Returns:
- qualifier
-
create
-
create
-
create
Creates a qualifier from an annotation.- Parameters:
annotation- the qualifier annotation- Returns:
- qualifier
-
createNamed
Creates aService.Namedqualifier.- Parameters:
name- the name- Returns:
- named qualifier
-
createNamed
Creates aService.Namedqualifier.- Parameters:
name- the name- Returns:
- named qualifier
-
createNamed
Creates aService.Namedqualifier.- Parameters:
name- the name- Returns:
- named qualifier
-
createNamed
Creates aService.Namedqualifier from a class name.- Parameters:
className- class whose name will be used- Returns:
- named qualifier
-