Class PluginInstaller

java.lang.Object
is.galia.plugin.PluginInstaller

public final class PluginInstaller extends Object
Thread-safe plugin installer.
  • Method Details

    • installPlugin

      public void installPlugin(String pluginName) throws PluginException, IOException

      Installs the plugin with the given name from the artifact repository. The latest plugin version with valid properties and a compatible specification version is chosen.

      Throws:
      PluginException
      IOException
      See Also:
    • installPlugin

      public void installPlugin(String pluginName, String version) throws PluginException, IOException

      Installs a particular version of a plugin from:

      1. The account representation, which contains a list of all purchased plugins
      2. The public plugin index, which contains a list of all publicly available plugins

      The latest plugin version with valid properties and a compatible specification version is chosen.

      Parameters:
      pluginName - Name of the plugin to install.
      version - Version of the plugin to install. May be null.
      Throws:
      PluginAlreadyInstalledException - if the plugin is already installed.
      PluginNotFoundException - if the plugin was not found remotely.
      ArtifactDigestException - if the checksum of the downloaded file does not match the one listed in the repository.
      PluginException
      IOException