Annotation Interface ServiceConsumer
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe cardinality of this requirement.The effective time of theosgi.serviceloaderandosgi.extenderrequirements.The resolution policy of theosgi.serviceloaderandosgi.extenderrequirements.
-
Element Details
-
value
Class<?> valueThe service type.- Returns:
- the service type
-
-
-
effective
The effective time of theosgi.serviceloaderandosgi.extenderrequirements.Specifies the time the service loader requirements are available. The OSGi framework resolver only considers requirements without an effective directive or
effective:=resolve. Requirements with other values for the effective directive can be considered by an external agent.If not specified, the
effectivedirective is omitted from the requirement clause.- Default:
- ""
-
cardinality
String cardinalityThe cardinality of this requirement.Indicates if this requirement can be wired a single time or multiple times.
If not specified, the
cardinalitydirective is omitted from the requirement clause.- Default:
- "default"
-
resolution
String resolutionThe resolution policy of theosgi.serviceloaderandosgi.extenderrequirements.A mandatory requirement forbids the bundle to resolve when this requirement is not satisfied; an optional requirement allows a bundle to resolve even if this requirement is not satisfied.
If not specified, the
resolutiondirective is omitted from the requirement clause.- Default:
- "default"
-