public class DefaultInstallerProviderManager extends AbstractProviderManager implements InstallerProviderManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROVIDERS_DESCRIPTION |
static java.lang.String |
PROVIDERS_NAME |
static java.lang.String |
PROVIDERS_NAMESPACE |
Constructor and Description |
---|
DefaultInstallerProviderManager() |
Modifier and Type | Method and Description |
---|---|
InstallPackageProvider |
createExecutionProvider(java.lang.String providerName)
Creates a new provider to execute an installer to add a new package in
gvSIG.
|
InstallPackageProviderServices |
createInstallerProviderServices()
Creates the services that be used for the providers to execute or create
a new bundle.
|
ProviderServices |
createProviderServices(Service service)
Creates a new
ProviderServices object to be used by the
Provider s. |
java.lang.String |
getPackageInfoFileName()
Returns the name to use for the package info file.
|
java.util.List<ProviderFactory> |
getProviderFactories() |
protected java.lang.String |
getRegistryDescription() |
protected java.lang.String |
getRegistryKey() |
addProviderFactory, createProvider, createServiceParameters, getProviderFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProviderFactory
addProviderFactory, createProvider, createServiceParameters
public static final java.lang.String PROVIDERS_NAMESPACE
public static final java.lang.String PROVIDERS_NAME
public static final java.lang.String PROVIDERS_DESCRIPTION
protected java.lang.String getRegistryDescription()
getRegistryDescription
in class AbstractProviderManager
protected java.lang.String getRegistryKey()
getRegistryKey
in class AbstractProviderManager
public ProviderServices createProviderServices(Service service)
ProviderManager
ProviderServices
object to be used by the
Provider
s.createProviderServices
in interface ProviderManager
service
- to create the related ProviderServices
with.public InstallPackageProvider createExecutionProvider(java.lang.String providerName) throws ServiceException
InstallerProviderManager
createExecutionProvider
in interface InstallerProviderManager
providerName
- the provider name used on the registration of the provider.
This name is the type attribute defined by PackageInfo
.ServiceException
- if the provider doesn't exist or if there is a problem
creating the provider.public InstallPackageProviderServices createInstallerProviderServices()
InstallerProviderManager
createInstallerProviderServices
in interface InstallerProviderManager
public java.lang.String getPackageInfoFileName()
InstallerProviderManager
getPackageInfoFileName
in interface InstallerProviderManager
public java.util.List<ProviderFactory> getProviderFactories()
getProviderFactories
in interface ProviderManager_WithGetFactories
getProviderFactories
in class AbstractProviderManager