public class ServiceRegistrationImpl<S> extends java.lang.Object implements ServiceRegistration<S>
ServiceRegistration| Modifier and Type | Method and Description |
|---|---|
ServiceReference<S> |
getReference()
Returns a ServiceReference object for this registration.
|
void |
setProperties(java.util.Dictionary<java.lang.String,?> props)
Update the properties associated with this service.
|
void |
unregister()
Unregister the service.
|
public ServiceReference<S> getReference()
getReference in interface ServiceRegistration<S>ServiceReference object.ServiceRegistration.getReference()public void setProperties(java.util.Dictionary<java.lang.String,?> props)
setProperties in interface ServiceRegistration<S>props - The properties for this service. See 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.ServiceRegistration.setProperties(java.util.Dictionary<java.lang.String, ?>)public void unregister()
unregister in interface ServiceRegistration<S>ServiceRegistration.unregister()