|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=CLASS)
@Target(value={})
public @interface LookupReference
Define a lookup strategy reference for a Component.
The referenced service can be accessed using one of the locateService
methods of ComponentContext.
This annotation is not processed at runtime by a Service Component Runtime implementation. It must be processed by tools and used to add a Component Description to the bundle.
In the generated Component Description for a component, the references must
be ordered in ascending lexicographical order (using String.compareTo
) of the reference names.
| Required Element Summary | |
|---|---|
String |
name
The name of this reference. |
Class<?> |
service
The type of the service to bind to this reference. |
| Optional Element Summary | |
|---|---|
ReferenceCardinality |
cardinality
The cardinality of the reference. |
ReferencePolicy |
policy
The policy for the reference. |
ReferencePolicyOption |
policyOption
The policy option for the reference. |
ReferenceScope |
scope
The requested service scope for this Reference. |
String |
target
The target filter for the reference. |
| Element Detail |
|---|
public abstract String name
public abstract Class<?> service
public abstract ReferenceCardinality cardinality
If not specified, the reference has a
1..1 cardinality.
public abstract ReferencePolicy policy
If not specified, the STATIC reference
policy is used.
public abstract String target
public abstract ReferencePolicyOption policyOption
If not specified, the RELUCTANT
reference policy option is used.
public abstract ReferenceScope scope
If not specified, the bundle service scope
is requested.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||