Top Description Fields Constructors Methods
org.glassfish.hk2.utilities

public Class NamedImpl

extends AnnotationLiteral<Named>
implements Named
Class Inheritance
All Implemented Interfaces
jakarta.inject.Named, java.lang.annotation.Annotation
Imports
jakarta.inject.Named, org.glassfish.hk2.api.AnnotationLiteral

This is an implementation of the Named annotation.
Author
jwells

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
NamedImpl(String
The non-null name to give the annotation
name
)

Creates a Named annotation with the given name

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Implements java.lang.annotation.Annotation.toString.

Returns a string representation of this annotation.

public String
value()

Implements jakarta.inject.Named.value.

The name.

Inherited from org.glassfish.hk2.api.AnnotationLiteral:
annotationTypeequalshashCode

Field Detail

nameback to summary
private final String name
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.glassfish.hk2.api.AnnotationLiteral.serialVersionUID.

For serialization

Constructor Detail

NamedImplback to summary
public NamedImpl(String name)

Creates a Named annotation with the given name

Parameters
name:String

The non-null name to give the annotation

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements java.lang.annotation.Annotation.toString.

Doc from java.lang.annotation.Annotation.toString.

Returns a string representation of this annotation. The details of the representation are implementation-dependent, but the following may be regarded as typical:

  @com.example.Name(first="Duke", middle="of", last="Java")
valueback to summary
public String value()

Implements jakarta.inject.Named.value.

Doc from jakarta.inject.Named.value.

The name.

Annotations
@Override