*
| Modifier and Type | Class and Description |
|---|---|
| public static class | Reference.
A marker type used in |
| public static class | Reference.
Support inline instantiation of the |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Class |
| target | back to summary |
|---|---|
| public String target() The target property for this reference. If not specified, no target property is set.
| |
| value | back to summary |
|---|---|
| public Class Specify the type of the service for this reference. If not specified, the type of the service for this reference is derived from the injection point type. If a value is specified it must be type compatible with (assignable to) the service type derived from the injection point type, otherwise a definition error will result.
| |
Reference#value to indicate that a
reference injection point may accept any service type(s).
The injection point service type must be specified as Object.
The value must be specified by itself.
For example:
@Inject @Reference(value = Any.class, target = "(bar=baz)") List<Object> services;
| Access | Constructor and Description |
|---|---|
| public |
| Any | back to summary |
|---|---|
| public Any() | |
Reference annotation.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final Reference. | |
| public String | target()
Implements org. The target property for this reference. |
| public Class | value()
Implements org. Specify the type of the service for this reference. |
| _service | back to summary |
|---|---|
| private final Class<?> _service | |
| _target | back to summary |
|---|---|
| private final String _target | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| Literal | back to summary |
|---|---|
| private Literal(Class<?> service, String target) | |
| of | back to summary |
|---|---|
| public static final Reference. | |
| target | back to summary |
|---|---|
| public String target() Implements org. Doc from org. The target property for this reference. If not specified, no target property is set.
| |
| value | back to summary |
|---|---|
| public Class Implements org. Doc from org. Specify the type of the service for this reference. If not specified, the type of the service for this reference is derived from the injection point type. If a value is specified it must be type compatible with (assignable to) the service type derived from the injection point type, otherwise a definition error will result.
| |