org.gvsig.tools.service.spi
Interface ProviderFactory

All Superinterfaces:
ExtensionSingleton
All Known Implementing Classes:
AbstractProviderFactory

public interface ProviderFactory
extends ExtensionSingleton

Creates new Providers and its parameters.

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

Method Summary
 Provider create(DynObject parameters, ProviderServices services)
          Creates a new Provider.
 DynObject createParameters()
          Creates the parameters for the Provider created by this factory.
 String getName()
          Returns the name of the providers created by this factory.
 void initialize()
          Initialices the factory.
 

Method Detail

getName

String getName()
Returns the name of the providers created by this factory.

Returns:
the provider name

create

Provider create(DynObject parameters,
                ProviderServices services)
                throws ServiceException
Creates a new Provider.

Parameters:
parameters - for the Provider
services - 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

createParameters

DynObject createParameters()
Creates the parameters for the Provider created by this factory.

Returns:
the provider parameters

initialize

void initialize()
Initialices the factory.



Copyright © 2004-2011 gvSIG. All Rights Reserved.