ist.palcom.service.manager
Class UnboundService

java.lang.Object
  extended by 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.


Constructor Summary
UnboundService(java.lang.String serviceClassName, ServiceManager m)
           
 
Method Summary
 void addToServiceList(DeviceContext context, PRDSubList swcList)
           
 void commandReceived(CommandEvent e)
           
 java.lang.String getClassName()
           
 ServiceInstanceID getSIID()
           
 boolean loadService(DeviceContext context, ServiceInstanceID siid, PRDSubList swcList)
          load the service of an UnboundService into a device
 void unloadService()
          Remove the service from its device
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnboundService

public UnboundService(java.lang.String serviceClassName,
                      ServiceManager m)
Method Detail

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 to
siid - 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)