org.gvsig.tools.service.spi
Interface ServiceManager

All Known Implementing Classes:
AbstractServiceManager

public interface ServiceManager

Manages the registration of ServiceFactory objects and the creation of Services.

Author:
2009- César Ordiñana - gvSIG team

Method Summary
 void addServiceFactory(ServiceFactory serviceFactory)
          Adds a new ServiceFactory to the registry.
 Service createService(DynObject serviceParameters)
          Creates a new Service.
 DynObject createServiceParameters(String serviceName)
          Creates the parameters for the Service created by the factory with the given name.
 

Method Detail

addServiceFactory

void addServiceFactory(ServiceFactory serviceFactory)
Adds a new ServiceFactory to the registry.

Parameters:
serviceFactory - to add

createService

Service createService(DynObject serviceParameters)
                      throws ServiceException
Creates a new Service.

Parameters:
serviceParameters - for the Service
Returns:
the new Service
Throws:
ServiceException - if the parameters are not valid or there is an error creating the Provider

createServiceParameters

DynObject createServiceParameters(String serviceName)
                                  throws ServiceException
Creates the parameters for the Service created by the factory with the given name.

Parameters:
serviceName - name of the factory to create the Service
Returns:
the service parameters
Throws:
ServiceException


Copyright © 2004-2011 gvSIG. All Rights Reserved.