Annotation Interface ExportAsService
Denotes a component to be exported as an OSGi service available to other bundles.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe service properties to be exported with this service.Class<?>[]The interfaces the service should be exported as.
-
Element Details
-
value
Class<?>[] valueThe interfaces the service should be exported as.The default is to export as ALL interfaces implemented by this class, or as the implementation class if it implements no interfaces.
- Returns:
- the list of interfaces to export
- Default:
- {}
-
properties
ServiceProperty[] propertiesThe service properties to be exported with this service. Multiple properties can now be added to a service being exported as shown by@ExportAsService(properties = {@ServiceProperty(key = "my_key", value = "service_with_properties_key")})- Returns:
- The service properties to be exported with the service
- Since:
- 2.2.0
- Default:
- {}
-