Class PluginId

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

public final class PluginId extends Object implements Serializable
The ID of a plugin, consisting of the plugin JAR's key and an optional file key. The file key is used only when the plugin consists of multiple JAR files.
Since:
8.5.0
See Also:
  • Constructor Details

    • PluginId

      public PluginId(String pluginKey, String fileKey)
      Creates a new plugin ID instance.
      Parameters:
      pluginKey - The plugin key.
      fileKey - The file key, or null if the plugin consists of a single JAR file.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • fileKey

      public String fileKey()
      Gets the file key, or empty when the plugin consists of a single JAR file.
      Returns:
      The file key.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • pluginKey

      public String pluginKey()
      Gets the plugin key. Usually the plugin key is set within the JAR's manifest.
      Returns:
      The plugin key.