Class PluginJarWithManifest

java.lang.Object
de.xima.fc.mdl.plugin.PluginJarWithManifest
All Implemented Interfaces:
Serializable

public final class PluginJarWithManifest extends Object implements Serializable
Model for an unpacked plugin with some meta data from the manifest.
Since:
8.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • PluginJarWithManifest

      public PluginJarWithManifest(Path jarFile, Map<String,String> manifestAttributes, PluginID pluginId)
      Parameters:
      manifestAttributes - Attributes from the manifest.
      jarFile - The path to the JAR file containing the plugin.
      pluginId - ID of the plugin, if known, for dealing with legacy plugins without a Plugin-Key in their Manifest files. Can be null.
  • Method Details

    • getJarFile

      public Path getJarFile()
      Returns:
      The path to the JAR file containing the plugin.
    • getManifestAttributes

      public Map<String,String> getManifestAttributes()
      Returns:
      All main attributes from the Manifest.
    • getPluginID

      public PluginID getPluginID()
      Returns:
      The plugin ID from the Manifest.
    • getPluginKey

      public String getPluginKey()
      Returns:
      The plugin key from the Manifest.
    • getPluginFileKey

      public String getPluginFileKey()
      Returns:
      The plugin file key from the Manifest.
    • getPluginRepository

      public String getPluginRepository()
      Returns:
      The plugin repository from the Manifest.
    • getVersion

      public String getVersion()
      Returns:
      The version from the Manifest.