Package de.xima.fc.mdl.plugin
Class PluginJarWithManifest
java.lang.Object
de.xima.fc.mdl.plugin.PluginJarWithManifest
- All Implemented Interfaces:
Serializable
Model for an unpacked plugin with some meta data from the manifest.
- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
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 benull
.
-
-
Method Details
-
getJarFile
- Returns:
- The path to the JAR file containing the plugin.
-
getManifestAttributes
- Returns:
- All main attributes from the Manifest.
-
getPluginID
- Returns:
- The
plugin ID
from the Manifest.
-
getPluginKey
- Returns:
- The
plugin key
from the Manifest.
-
getPluginFileKey
- Returns:
- The
plugin file key
from the Manifest.
-
getPluginRepository
- Returns:
- The
plugin repository
from the Manifest.
-
getVersion
- Returns:
- The version from the Manifest.
-