@Qualifier @Documented @Retention(value=RUNTIME) public @interface Named
Example usage:
public class Car { @Inject @Named("driver") Seat driverSeat; @Inject @Named("passenger") Seat passengerSeat; ... }
Modifier and Type | Optional Element and Description |
---|---|
Ciąg znaków |
value
The name.
|
public abstract String value
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.