Interface InstallerProviderManager

All Superinterfaces:
org.gvsig.tools.service.spi.ProviderManager, org.gvsig.tools.service.spi.ProviderManager_WithGetFactories

public interface InstallerProviderManager extends org.gvsig.tools.service.spi.ProviderManager, org.gvsig.tools.service.spi.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.

Author:
Jorge Piera Llodrá
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new provider to execute an installer to add a new package in gvSIG.
    Creates the services that be used for the providers to execute or create a new bundle.
    Returns the name to use for the package info file.

    Methods inherited from interface org.gvsig.tools.service.spi.ProviderManager

    addProviderFactory, createProvider, createProviderServices, createServiceParameters

    Methods inherited from interface org.gvsig.tools.service.spi.ProviderManager_WithGetFactories

    getProviderFactories, getProviderFactory
  • Method Details

    • createExecutionProvider

      InstallPackageProvider createExecutionProvider(String providerName) throws org.gvsig.tools.service.ServiceException
      Creates a new provider to execute an installer to add a new package in gvSIG.
      Parameters:
      providerName - the provider name used on the registration of the provider. This name is the type attribute defined by PackageInfo .
      Returns:
      a provider that can be used to install a package.
      Throws:
      org.gvsig.tools.service.ServiceException - if the provider doesn't exist or if there is a problem creating the provider.
    • createInstallerProviderServices

      InstallPackageProviderServices createInstallerProviderServices()
      Creates the services that be used for the providers to execute or create a new bundle.
      Returns:
      the services used to create or execute an bundle.
    • getPackageInfoFileName

      String getPackageInfoFileName()
      Returns the name to use for the package info file.
      Returns:
      the name of the package info file