public interface IServiceManager
ServiceConfig and calling #registerService(ServiceConfig). An implementation of
IServiceManager acts as a depot of service objects in the Pentaho BI platform.
For information on providing services via platform plugins, see the wiki link below.
http
://wiki.pentaho.com/display/ServerDoc2x/Developing+Plugins#DevelopingPlugins-Definingawebservice
(newinCitrus)}| Modifier and Type | Method and Description |
|---|---|
Object |
getServiceBean(String serviceType,
String serviceId)
Returns an instance of a registered servicing object.
|
IServiceConfig |
getServiceConfig(String serviceType,
String serviceId)
Gets the configuration for the requested service.
|
void |
initServices()
Activates the services that have been registered with the service manager.
|
void |
registerService(IServiceConfig config)
Registers a service with the service manager.
|
void registerService(IServiceConfig config) throws ServiceException
#initServices(IPentahoSession) has been called.wsDefinition - the web service definitionServiceExceptionvoid initServices()
throws ServiceInitializationException
session - the current sessionServiceInitializationExceptionObject getServiceBean(String serviceType, String serviceId) throws ServiceException
serviceType - the type of the service, used to lookup the correct service classserviceId - the unique id of the serviceServiceException - if no service object can be found or there was a problem retrieving the service objectIServiceConfig getServiceConfig(String serviceType, String serviceId)
serviceType - the type of the service, used to lookup the correct service classserviceId - the unique id of the service