OSGi™ Service Platform
Compendium Specification

Release 4 Version 4.3

org.osgi.service.remoteserviceadmin
Interface ExportReference


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.

ThreadSafe
Consumers of this API must not implement this interface

Method Summary
 EndpointDescription getExportedEndpoint()
          Return the Endpoint Description for the local endpoint.
 ServiceReference getExportedService()
          Return the service being exported.
 

Method Detail

getExportedService

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.

OSGi™ Service Platform
Compendium Specification

Release 4 Version 4.3

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0