Top Description Methods
jakarta.inject

public @Interface Named

extends Annotation
Annotations
@Qualifier
@Documented
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Documented

String-based qualifier.

Example usage:

  public class Car {
    @Inject @Named("driver") Seat driverSeat;
    @Inject @Named("passenger") Seat passengerSeat;
    ...
  }

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name.
value
()

The name.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The name.

Returns:String

the name.