Top Description Inners Methods
io.smallrye.common.annotation

public @Interface Identifier

extends Annotation
Known Direct Implementers
io.smallrye.common.annotation.Identifier.Literal
Annotations
@Qualifier
@Documented
@Retention:RUNTIME
@Target:FIELD, PARAMETER, METHOD, TYPE
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target, jakarta.enterprise.util.AnnotationLiteral, jakarta.inject.Qualifier

String-based qualifier. Unlike @Named, this is a proper qualifier in CDI environment.

Identifier must always be provided. Unlike @Named, it is not deduced from the annotation use.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Identifier.Literal

Supports inline instantiation of the Identifier qualifier.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the identifier.
value
()

The identifier.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The identifier.

Returns:String

the identifier.

io.smallrye.common.annotation back to summary

public final Class Identifier.Literal

extends AnnotationLiteral<Identifier>
implements Identifier
Class Inheritance
All Implemented Interfaces
io.smallrye.common.annotation.Identifier, java.lang.annotation.Annotation

Supports inline instantiation of the Identifier qualifier.

Field Summary

Modifier and TypeField and Description
private static final long
private final String
value

The identifier value.

Constructor Summary

AccessConstructor and Description
private
Literal(String value)

Method Summary

Modifier and TypeMethod and Description
public static Identifier.Literal

Returns:

the annotation literal
of
(String
the identifier value (must not be null)
value
)

Construct a new instance.

public String
Inherited from jakarta.enterprise.util.AnnotationLiteral:
annotationTypeequalshashCodetoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.enterprise.util.AnnotationLiteral.serialVersionUID.

valueback to summary
private final String value

The identifier value.

Constructor Detail

Literalback to summary
private Literal(String value)

Method Detail

ofback to summary
public static Identifier.Literal of(String value)

Construct a new instance.

Parameters
value:String

the identifier value (must not be null)

Returns:Identifier.Literal

the annotation literal

valueback to summary
public String value()

Implements io.smallrye.common.annotation.Identifier.value.

Doc from io.smallrye.common.annotation.Identifier.value.

The identifier.

Returns:String

the identifier.

Annotations
@Override