com.tenduke.services
Class ServiceContext

java.lang.Object
  extended by com.tenduke.services.ServiceContext
Direct Known Subclasses:
PlatformServiceContext

public class ServiceContext
extends java.lang.Object

Context information for services using ServiceManager (and its derived implementations). ServiceContext can be derived to correspond with the derived ServiceManager.


Constructor Summary
ServiceContext()
          Creates a new instance of ServiceContext
 
Method Summary
 void addContextObject(java.lang.String contextObjectName, java.lang.Object contextObject)
          Adding a named object to the context object list
 java.lang.Object getContextObject(java.lang.String contextObjectName)
          Getting a named object from the list of context objects
 void removeContextObject(java.lang.String contextObjectName)
          Removing a named object from the list of context objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContext

public ServiceContext()
Creates a new instance of ServiceContext

Method Detail

addContextObject

public void addContextObject(java.lang.String contextObjectName,
                             java.lang.Object contextObject)
Adding a named object to the context object list

Parameters:
contextObjectName - Name of the context object
contextObject - The context object to add

getContextObject

public java.lang.Object getContextObject(java.lang.String contextObjectName)
Getting a named object from the list of context objects

Parameters:
contextObjectName - Name of the context object

removeContextObject

public void removeContextObject(java.lang.String contextObjectName)
Removing a named object from the list of context objects

Parameters:
contextObjectName - Name of the context object