org.gvsig.tools.service.spi
Interface ProviderManager

All Known Implementing Classes:
AbstractProviderManager

public interface ProviderManager

Manager the registration of ProviderFactory objects and the creation of Providers.

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

Method Summary
 void addProviderFactory(ProviderFactory providerFactory)
          Adds a new ProviderFactory to the registry.
 Provider createProvider(DynObject serviceParameters, ProviderServices providerServices)
          Creates a new Provider.
 ProviderServices createProviderServices(Service service)
          Creates a new ProviderServices object to be used by the Providers.
 DynObject createServiceParameters(String serviceName)
          Creates the parameters for the Provider created by the factory with the given name.
 

Method Detail

addProviderFactory

void addProviderFactory(ProviderFactory providerFactory)
Adds a new ProviderFactory to the registry.

Parameters:
providerFactory - to add

createProvider

Provider createProvider(DynObject serviceParameters,
                        ProviderServices providerServices)
                        throws ServiceException
Creates a new Provider.

Parameters:
serviceParameters - for the Provider
providerServices - to be used by the Provider
Returns:
the new Provider
Throws:
ServiceException - if the parameters are not valid or there is an error creating the Provider

createProviderServices

ProviderServices createProviderServices(Service service)
Creates a new ProviderServices object to be used by the Providers.

Parameters:
service - to create the related ProviderServices with.
Returns:
the provider services

createServiceParameters

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

Parameters:
serviceName - name of the factory to create the Provider
Returns:
the provider parameters
Throws:
ServiceException


Copyright © 2004-2011 gvSIG. All Rights Reserved.