Interface ExportReference


@ProviderType public interface ExportReference
An Export Reference associates a service with a local endpoint. The Export Reference can be used to reference an exported service. When the service is no longer exported, all methods must return null.
Author:
$Id: d2f01cd1983a51b39a64dd3e1fd2fca6a1dd589c $
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the Endpoint Description for the local endpoint.
    org.osgi.framework.ServiceReference<?>
    Return the service being exported.
  • Method Details

    • getExportedService

      org.osgi.framework.ServiceReference<?> getExportedService()
      Return the service being exported.
      Returns:
      The service being exported. Must be null when the service is no longer exported.
    • getExportedEndpoint

      EndpointDescription getExportedEndpoint()
      Return the Endpoint Description for the local endpoint.
      Returns:
      The Endpoint Description for the local endpoint. Must be null when the service is no longer exported.