|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IServiceManagerServiceException
public Object getServiceBean(String serviceType,
String serviceId)
throws ServiceException
IServiceManager
getServiceBean in interface IServiceManagerserviceType - 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 object
public IServiceConfig getServiceConfig(String serviceType,
String serviceId)
IServiceManager
getServiceConfig in interface IServiceManagerserviceType - 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 IServiceManagerServiceInitializationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||