public abstract class AbstractProviderFactory extends java.lang.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 . |
java.lang.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 java.lang.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
.