org.pentaho.platform.plugin.services.pluginmgr.servicemgr
Interface IServiceTypeManager

All Known Implementing Classes:
AbstractServiceTypeManager, AxisWebServiceManager, FileSystemAxisWebServiceManager, GwtRpcServiceManager

public interface IServiceTypeManager

The platform's service manager, IServiceManager, may delegate the handling of particular types of services to an implemention of this interface. Having service types handled by their own managers will allow us manage (e.g. enable/disable) all services of a particular type.


Method Summary
 Object getServiceBean(String serviceId)
          Returns an instance of a registered servicing object.
 IServiceConfig getServiceConfig(String serviceId)
          Retrieves the config for a particular service
 String getSupportedServiceType()
          Returns the service type
 void initServices()
          Performs any initialization this service type requires
 void registerService(IServiceConfig wsDefinition)
          Registers a service with this svc type manager
 

Method Detail

registerService

void registerService(IServiceConfig wsDefinition)
                     throws ServiceException
Registers a service with this svc type manager

Throws:
ServiceException
See Also:
IServiceManager.registerService(IServiceConfig)

getServiceBean

Object getServiceBean(String serviceId)
                      throws ServiceException
Returns an instance of a registered servicing object.

Parameters:
serviceId - the unique id of the service
Returns:
an instance of the servicing object
Throws:
ServiceException - if no service object can be found or there was a problem retrieving the service object

getSupportedServiceType

String getSupportedServiceType()
Returns the service type


initServices

void initServices()
                  throws ServiceInitializationException
Performs any initialization this service type requires

Throws:
ServiceInitializationException

getServiceConfig

IServiceConfig getServiceConfig(String serviceId)
Retrieves the config for a particular service

Parameters:
serviceId -
Returns:
the config