public abstract class AbstractProviderFactory extends Object implements ProviderFactory
ProviderFactory
implementation.Constructor and Description |
---|
AbstractProviderFactory()
Creates a new
AbstractProviderFactory . |
Modifier and Type | Method and Description |
---|---|
Provider |
create(DynObject parameters,
ProviderServices services)
Creates a new
Provider . |
DynObject |
createParameters()
Creates the parameters for the
Provider created by this factory. |
protected abstract DynClass |
createParametersDynClass()
|
protected abstract Provider |
doCreate(DynObject parameters,
ProviderServices services)
Creates a new
Provider with the given parameters and
ProviderServices . |
String |
getName()
Returns the name of the providers created by this factory.
|
protected void |
setParametersDynClass(DynClass parametersDynClass)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public AbstractProviderFactory()
AbstractProviderFactory
.public String getName()
ProviderFactory
getName
in interface ProviderFactory
public DynObject createParameters()
ProviderFactory
Provider
created by this factory.createParameters
in interface ProviderFactory
public final Provider create(DynObject parameters, ProviderServices services) throws ServiceException
ProviderFactory
Provider
.create
in interface ProviderFactory
parameters
- for the Provider
services
- to be used by the Provider
Provider
ServiceException
- if the parameters are not valid or there is an error creating
the Provider
protected void setParametersDynClass(DynClass parametersDynClass)
parametersDynClass
- the parameters DynClass
protected abstract Provider doCreate(DynObject parameters, ProviderServices services)
Provider
with the given parameters and
ProviderServices
.