net.sf.sail.core.service.impl
Class ServiceContextImpl

java.lang.Object
  extended by net.sf.sail.core.service.impl.ServiceContextImpl
All Implemented Interfaces:
ServiceContext

public class ServiceContextImpl
extends java.lang.Object
implements ServiceContext

Author:
scytacki AUDIT07-

Constructor Summary
ServiceContextImpl()
           
 
Method Summary
 void addService(java.lang.Class<?> serviceClass, java.lang.Object service)
           
 java.lang.Object getService(java.lang.Class<?> serviceClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceContextImpl

public ServiceContextImpl()
Method Detail

addService

public void addService(java.lang.Class<?> serviceClass,
                       java.lang.Object service)
Specified by:
addService in interface ServiceContext
Parameters:
serviceClass - service class to add, used as key to the actual service implementation
service - the actual service implementation to use

getService

public java.lang.Object getService(java.lang.Class<?> serviceClass)
Specified by:
getService in interface ServiceContext
Parameters:
serviceClass - the service class to lookup
Returns:
serviceClass implementation that is being used


Copyright © 2004-2008 TELS Center. All Rights Reserved.