Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Copyright (c) OSGi Alliance (2009, 2013). All Rights Reserved.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.osgi.service.remoteserviceadmin;
An Export Registration associates a service to a local endpoint. The Export Registration can be used to delete the endpoint associated with an this registration. It is created with the RemoteServiceAdmin.exportService(org.osgi.framework.ServiceReference,java.util.Map) method. When this Export Registration has been closed, all methods must return null.

$Id: 64285705bd33387e990c67c3555f9d80e8a7bfb9 $
public interface ExportRegistration {
Return the Export Reference for the exported service.

The Export Reference for this registration.
java.lang.IllegalStateException When this registration was not properly initialized. See getException().
Delete the local endpoint and disconnect any remote distribution providers. After this method returns, all methods must return null. This method has no effect when this registration has already been closed or is being closed.
	void close();

Return the exception for any error during the export process. If the Remote Service Admin for some reasons is unable to properly initialize this registration, then it must return an exception from this method. If no error occurred, this method must return null. The error must be set before this Export Registration is returned. Asynchronously occurring errors must be reported to the log.

The exception that occurred during the initialization of this registration or null if no exception occurred.
New to GrepCode? Check out our FAQ X