|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.plugin.services.pluginmgr.servicemgr.DefaultServiceManager
public class DefaultServiceManager
The default implementation of IServiceManager
Field Summary | |
---|---|
Map<String,IServiceTypeManager> |
serviceManagerMap
|
Constructor Summary | |
---|---|
DefaultServiceManager()
|
Method Summary | |
---|---|
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 |
setServiceTypeManagers(Collection<IServiceTypeManager> serviceTypeManagers)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Map<String,IServiceTypeManager> serviceManagerMap
Constructor Detail |
---|
public DefaultServiceManager()
Method Detail |
---|
public void setServiceTypeManagers(Collection<IServiceTypeManager> serviceTypeManagers)
public void registerService(IServiceConfig config) throws ServiceException
IServiceManager
#initServices(IPentahoSession)
has been called.
registerService
in interface IServiceManager
ServiceException
public Object getServiceBean(String serviceType, String serviceId) throws ServiceException
IServiceManager
getServiceBean
in interface IServiceManager
serviceType
- the type of the service, used to lookup the correct service classserviceId
- the unique id of the service
ServiceException
- if no service object can be found or there was a problem retrieving the service objectpublic IServiceConfig getServiceConfig(String serviceType, String serviceId)
IServiceManager
getServiceConfig
in interface IServiceManager
serviceType
- the type of the service, used to lookup the correct service classserviceId
- the unique id of the service
public void initServices() throws ServiceInitializationException
IServiceManager
initServices
in interface IServiceManager
ServiceInitializationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |