com.cometway.ak
Interface ServiceManagerInterface

All Known Implementing Classes:
PropsListServiceManager.PropsListServiceManagerImpl, SecureServiceManager.SecureServiceManagerImpl, ServiceManager.ServiceManagerImpl

public interface ServiceManagerInterface

A standard service manager interface for registering, retrieving, and unregistering service implementations.


Method Summary
 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 specified 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.
 

Method Detail

registerService

boolean registerService(java.lang.String serviceName,
                        java.lang.Object serviceImpl,
                        java.lang.Object authorization)
Registers the specified service implementation under the specified service name. If the authorization is not null, it can be used by the implementation to authenticate and/or route service manager requests. Returns true if successful; false otherwise.


getServiceImpl

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.


listServices

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


unregisterService

boolean unregisterService(java.lang.String serviceName,
                          java.lang.Object serviceImpl,
                          java.lang.Object authorization)
Unregisters the specified service implementation under the specified service name. If the authorization is not null, it can be used by the implementation to authenticate and/or route service manager requests. Returns true if successful; false otherwise.