public interface InstallerProviderManager extends ProviderManager, ProviderManager_WithGetFactories
The installation process install packages in gvSIG. These packages has a type, that can be a plugin, theme, translation, etc. For every type of package the installation process needs a provider for installing the packages.
All the packages to install have to have some install properties defined by
the PackageInfo
class. This class is just a set of properties and
there is a property named type that can be retrieved by the
PackageInfo.getType()
method that defines the package type. This
property is used to create a InstallPackageProvider
that is used to
install the selected package.
This manager provides the functionality to register and to create a providers for every package.
Modifier and Type | Method and Description |
---|---|
InstallPackageProvider |
createExecutionProvider(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.
|
String |
getPackageInfoFileName()
Returns the name to use for the package info file.
|
getProviderFactories, getProviderFactory
addProviderFactory, createProvider, createProviderServices, createServiceParameters
InstallPackageProvider createExecutionProvider(String providerName) throws ServiceException
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.InstallPackageProviderServices createInstallerProviderServices()
String getPackageInfoFileName()