Top Description Methods
javax.inject

public @Interface Named

extends Annotation
Known Direct Implementers
javax.enterprise.inject.literal.NamedLiteral
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
value()

The name.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The name.