public class ServiceReference extends Object
UDN
and a ServiceId
.
A service reference is useful to remember a service. For example, if a control point has accessed
a service once, it can remember the service with Service.getReference()
.
Before every action invocation, it can now resolve the reference to an actually registered service with
Registry.getService(ServiceReference)
. If the registry doesn't return
a service for the given reference, the service is currently not available.
This simplifies implementing disconnect/reconnect behavior in a control point.
Constructor and Description |
---|
ServiceReference(String s) |
ServiceReference(UDN udn,
ServiceId serviceId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ServiceId |
getServiceId() |
UDN |
getUdn() |
int |
hashCode() |
String |
toString() |
public static final String DELIMITER
public ServiceReference(String s)
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.