The Framework returns a ServiceRegistration
object when a
BundleContext.registerService
method invocation is successful. The
ServiceRegistration
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
of the service or to unregister the service.
BundleContext#registerService(String[], Object, Dictionary)
Modifier and Type | Method and Description |
---|---|
public ServiceReference | Returns: ServiceReference object.Returns a |
public void | setProperties(Dictionary<String, ?>
The properties for this service. See properties)Constants
for a list of standard service property keys. Changes should not
be made to this object after calling this method. To update the
service's properties this method should be called again.Updates the properties associated with a service. |
public void |
getReference | back to summary |
---|---|
public ServiceReference Returns a
The
|
setProperties | back to summary |
---|---|
public void setProperties(Dictionary<String, ?> properties) Updates the properties associated with a service.
The The following steps are required to modify service properties:
|
unregister | back to summary |
---|---|
public void unregister() Unregisters a service. Remove a The following steps are required to unregister a service:
|