portal.services.sp
Class ServiceManager
java.lang.Object
portal.services.ServiceLocator
portal.services.sp.ServiceManager
- public class ServiceManager
- extends ServiceLocator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceManager
public ServiceManager()
throws ServiceException
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