portal.services.sp
Class ServiceManager

java.lang.Object
  extended byportal.services.ServiceLocator
      extended byportal.services.sp.ServiceManager

public class ServiceManager
extends ServiceLocator


Constructor Summary
ServiceManager()
           
 
Method Summary
 void configureFromStream(ServletContext context, java.io.InputStream xmlStream)
           
 ServiceController getInstanceManagerForService(java.lang.Class interfaceRequired)
           
 EventBus getServicesEventBus()
           
 IService locateService(java.lang.Class interfaceRequired)
          This method will search for a registered service that implements a certain interface.
 
Methods inherited from class portal.services.ServiceLocator
getServiceLocator, setServiceLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManager

public ServiceManager()
               throws ServiceException
Method Detail

getServicesEventBus

public EventBus getServicesEventBus()

getInstanceManagerForService

public ServiceController getInstanceManagerForService(java.lang.Class interfaceRequired)
                                               throws ServiceException
Throws:
ServiceException

locateService

public IService locateService(java.lang.Class interfaceRequired)
                       throws ServiceException
Description copied from class: ServiceLocator
This method will search for a registered service that implements a certain interface. When no service is found, null is returned. When multiple services implement the requested interface, only one will be returned. Which one depends on the internal workings of the engine and might change.

Specified by:
locateService in class ServiceLocator
Parameters:
interfaceRequired - The Class instance of the interface the service should implement
Returns:
an instance of the service implementing the requested interface or null when none found
Throws:
ServiceException - thrown when the framework was unable to search for a service

configureFromStream

public void configureFromStream(ServletContext context,
                                java.io.InputStream xmlStream)
                         throws ServiceException
Throws:
ServiceException