com.cometway.ak
Class ServiceManager.ServiceManagerImpl

java.lang.Object
  extended by com.cometway.ak.ServiceManager.ServiceManagerImpl
All Implemented Interfaces:
ServiceManagerInterface
Enclosing class:
ServiceManager

public class ServiceManager.ServiceManagerImpl
extends java.lang.Object
implements ServiceManagerInterface


Constructor Summary
ServiceManager.ServiceManagerImpl()
           
 
Method Summary
protected  boolean authenticate(java.lang.Object authorization)
          Used to evaluate authentication; always returns true.
 java.lang.Object getServiceImpl(java.lang.String serviceName, java.lang.Object authorization)
          Returns an implementation for the specified service name if one exists; null otherwise.
 java.util.List listServices(java.lang.String serviceName, java.lang.Object authorization)
          Returns a List containing matching implementations for the specified service names.
 boolean registerService(java.lang.String serviceName, java.lang.Object serviceImpl, java.lang.Object authorization)
          Registers the service implementation under the specified service name.
 boolean unregisterService(java.lang.String serviceName, java.lang.Object serviceImpl, java.lang.Object authorization)
          Unregisters the specified service implementation under the specified service name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManager.ServiceManagerImpl

public ServiceManager.ServiceManagerImpl()
Method Detail

authenticate

protected boolean authenticate(java.lang.Object authorization)
Used to evaluate authentication; always returns true.


getServiceImpl

public java.lang.Object getServiceImpl(java.lang.String serviceName,
                                       java.lang.Object authorization)
Returns an implementation for the specified service name if one exists; null otherwise. Authorization is ignored.

Specified by:
getServiceImpl in interface ServiceManagerInterface

listServices

public java.util.List listServices(java.lang.String serviceName,
                                   java.lang.Object authorization)
Returns a List containing matching implementations for the specified service names.

Specified by:
listServices in interface ServiceManagerInterface

registerService

public boolean registerService(java.lang.String serviceName,
                               java.lang.Object serviceImpl,
                               java.lang.Object authorization)
Registers the service implementation under the specified service name. Authorization is ignored. Returns true if successful; false otherwise.

Specified by:
registerService in interface ServiceManagerInterface

unregisterService

public boolean unregisterService(java.lang.String serviceName,
                                 java.lang.Object serviceImpl,
                                 java.lang.Object authorization)
Unregisters the specified service implementation under the specified service name. Authorization is ignored. Returns true if successful; false otherwise.

Specified by:
unregisterService in interface ServiceManagerInterface