@ProviderType public interface ExportRegistration
RemoteServiceAdmin.exportService(ServiceReference,Map)method. When this Export Registration has been closed, all methods must return
|Modifier and Type||Method and Description|
Delete the local endpoint and disconnect any remote distribution providers.
Return the exception for any error during the export process.
Return the Export Reference for the exported service.
nullif this Import Registration is closed.
java.lang.IllegalStateException- When this registration was not properly initialized. See
EndpointDescription update(java.util.Map<java.lang.String,?> properties)
ExportRegistrationand return an updated
EndpointDescription. If this method returns an updated
EndpointDescription, then the object returned via
getExportReference()must also have been updated to return this new object. If this method does not return an updated
EndpointDescriptionthen the object returned via
getExportReference()should remain unchanged. When creating the updated
ServiceReferenceoriginally passed to
RemoteServiceAdmin.exportService(ServiceReference, Map)must be queried to pick up any changes to its service properties. If this argument is null then the original properties passed when creating this ExportRegistration should be used when constructing the updated
EndpointDescription. Otherwise the new properties should be used, and replace the original properties for subsequent calls to the update method.
properties- properties to be merged with the current service properties for the
ServiceReferencerepresented by this
ExportRegistration. If null is passed then the original properties passed to
RemoteServiceAdmin.exportService(ServiceReference, Map)will be used.
EndpointDescriptionfor this registration or null if there was a failure updating the endpoint. If a failure occurs then it can be accessed using
java.lang.IllegalStateException- If this registration is closed, or when this registration was not properly initialized. See
null. This method has no effect when this registration has already been closed or is being closed.
null. The error must be set before this Export Registration is returned. Asynchronously occurring errors must be reported to the log.
nullif no exception occurred.
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0