Package de.xima.fc.mdl.plugin
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getJarFile()
Map<String,String>
getManifestAttributes()
String
getPluginFileKey()
PluginID
getPluginID()
String
getPluginKey()
String
getPluginRepository()
String
getVersion()
-
-
-
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 benull
.
-
-
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.
-
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.
-
-