Class 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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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.
      • getVersion

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