Package jakarta.inject
Annotation Type Named
-
@Qualifier @Documented @Retention(RUNTIME) public @interface Named
String-based qualifier.Example usage:
public class Car { @Inject @Named("driver") Seat driverSeat; @Inject @Named("passenger") Seat passengerSeat; ... }
-
-
Element Detail
-
value
String value
The name.- Returns:
- the name.
- Default:
- ""
-
-