ist.palcom.service.manager
Class UnboundService
java.lang.Object
ist.palcom.service.manager.UnboundService
- All Implemented Interfaces:
- CommandEventListener
public class UnboundService
- extends java.lang.Object
- implements CommandEventListener
UnboundService
A class describing an Unbound Service, i.e., a service fully implemented
in software, that can be loaded into devices.
This class is generic to all UnboundServices, the specific functionality is given
by a subclass to AbstractService, which is instantiated when loadService(.) is
called. The service class is identified either by giving its qualified name,
or a class reference.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnboundService
public UnboundService(java.lang.String serviceClassName,
ServiceManager m)
getClassName
public java.lang.String getClassName()
getSIID
public ServiceInstanceID getSIID()
loadService
public boolean loadService(DeviceContext context,
ServiceInstanceID siid,
PRDSubList swcList)
- load the service of an UnboundService into a device
- Parameters:
context - the device context the service will be added tosiid - the ServiceInstanceID of the service
- Returns:
- true on success
unloadService
public void unloadService()
- Remove the service from its device
commandReceived
public void commandReceived(CommandEvent e)
- Specified by:
commandReceived in interface CommandEventListener
addToServiceList
public void addToServiceList(DeviceContext context,
PRDSubList swcList)