Class AbstractServiceTypeManager
- java.lang.Object
-
- org.pentaho.platform.plugin.services.pluginmgr.servicemgr.AbstractServiceTypeManager
-
- All Implemented Interfaces:
IServiceTypeManager
- Direct Known Subclasses:
AxisWebServiceManager
,GwtRpcServiceManager
public abstract class AbstractServiceTypeManager extends Object implements IServiceTypeManager
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<org.pentaho.platform.api.engine.IServiceConfig>
registeredServiceConfigs
protected Map<String,Class<?>>
serviceClassMap
protected Map<String,Object>
serviceInstanceMap
-
Constructor Summary
Constructors Constructor Description AbstractServiceTypeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getServiceBean(String serviceId)
Returns an instance of a registered servicing object.org.pentaho.platform.api.engine.IServiceConfig
getServiceConfig(String serviceId)
Retrieves the config for a particular servicevoid
registerService(org.pentaho.platform.api.engine.IServiceConfig wsConfig)
Registers a service with this svc type manager-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.platform.plugin.services.pluginmgr.servicemgr.IServiceTypeManager
getSupportedServiceType, initServices
-
-
-
-
Method Detail
-
registerService
public void registerService(org.pentaho.platform.api.engine.IServiceConfig wsConfig)
Description copied from interface:IServiceTypeManager
Registers a service with this svc type manager- Specified by:
registerService
in interfaceIServiceTypeManager
- See Also:
IServiceManager#registerService(IServiceConfig)
-
getServiceConfig
public org.pentaho.platform.api.engine.IServiceConfig getServiceConfig(String serviceId)
Description copied from interface:IServiceTypeManager
Retrieves the config for a particular service- Specified by:
getServiceConfig
in interfaceIServiceTypeManager
- Returns:
- the config
-
getServiceBean
public Object getServiceBean(String serviceId) throws org.pentaho.platform.api.engine.ServiceException
Description copied from interface:IServiceTypeManager
Returns an instance of a registered servicing object.- Specified by:
getServiceBean
in interfaceIServiceTypeManager
- Parameters:
serviceId
- the unique id of the service- Returns:
- an instance of the servicing object
- Throws:
org.pentaho.platform.api.engine.ServiceException
- if no service object can be found or there was a problem retrieving the service object
-
-