public abstract class AbstractProviderManager extends java.lang.Object implements ProviderManager_WithGetFactories
ProviderManager
implementation which stores the registered
ProviderFactory
objects into a Map
, using the name as the
key.Constructor and Description |
---|
AbstractProviderManager() |
Modifier and Type | Method and Description |
---|---|
void |
addProviderFactory(ProviderFactory providerFactory)
Adds a new
ProviderFactory to the registry. |
Provider |
createProvider(DynObject serviceParameters,
ProviderServices providerServices)
Creates a new
Provider . |
DynObject |
createServiceParameters(java.lang.String serviceName)
Creates the parameters for the
Provider created by the factory
with the given name. |
java.util.List |
getProviderFactories() |
ProviderFactory |
getProviderFactory(java.lang.String serviceName) |
protected abstract java.lang.String |
getRegistryDescription() |
protected abstract java.lang.String |
getRegistryKey() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createProviderServices
public void addProviderFactory(ProviderFactory providerFactory)
ProviderManager
ProviderFactory
to the registry.addProviderFactory
in interface ProviderManager
providerFactory
- to addprotected abstract java.lang.String getRegistryKey()
protected abstract java.lang.String getRegistryDescription()
public Provider createProvider(DynObject serviceParameters, ProviderServices providerServices) throws ServiceException
ProviderManager
Provider
.createProvider
in interface ProviderManager
serviceParameters
- for the Provider
providerServices
- to be used by the Provider
Provider
ServiceException
- if the parameters are not valid or there is an error creating
the Provider
public DynObject createServiceParameters(java.lang.String serviceName) throws ServiceException
ProviderManager
Provider
created by the factory
with the given name.createServiceParameters
in interface ProviderManager
serviceName
- name of the factory to create the Provider
ServiceException
public ProviderFactory getProviderFactory(java.lang.String serviceName) throws ParametersException, NotRegisteredException
getProviderFactory
in interface ProviderManager_WithGetFactories
ParametersException
NotRegisteredException
public java.util.List getProviderFactories()
getProviderFactories
in interface ProviderManager_WithGetFactories