ServiceRegistration

Syntax

public interface ServiceRegistration

Description

A registered service. The framework returns a ServiceRegistration object when a BundleContext.registerService(String[], Object, Dictionary) method is successful. This object is for the private use of the registering bundle and should not be shared with other bundles.

The ServiceRegistration object may be used to update the properties for the service or to unregister the service.

If the ServiceRegistration is garbage collected the framework may remove the service. This implies that if a bundle wants to keep its service registered, it should keep the ServiceRegistration object referenced.

Member Summary
Methods
public ServiceReferencegetReference()
 Returns a ServiceReference ...

Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.