Record Class PluginLoader.PluginJarInfo

java.lang.Object
java.lang.Record
ai.nervemind.app.service.PluginLoader.PluginJarInfo
Record Components:
pluginId - unique identifier of the plugin
pluginName - display name of the plugin
pluginVersion - version string
description - plugin description
jarPath - path to the JAR file
triggerCount - number of triggers found in JAR
actionCount - number of actions found in JAR
pluginProviderCount - number of unified plugin providers found in JAR
Enclosing class:
PluginLoader

public static record PluginLoader.PluginJarInfo(String pluginId, String pluginName, String pluginVersion, String description, Path jarPath, int triggerCount, int actionCount, int pluginProviderCount) extends Record
Information about a loaded plugin JAR.
  • Constructor Details

    • PluginJarInfo

      public PluginJarInfo(String pluginId, String pluginName, String pluginVersion, String description, Path jarPath, int triggerCount, int actionCount, int pluginProviderCount)
      Creates an instance of a PluginJarInfo record class.
      Parameters:
      pluginId - the value for the pluginId record component
      pluginName - the value for the pluginName record component
      pluginVersion - the value for the pluginVersion record component
      description - the value for the description record component
      jarPath - the value for the jarPath record component
      triggerCount - the value for the triggerCount record component
      actionCount - the value for the actionCount record component
      pluginProviderCount - the value for the pluginProviderCount record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • pluginId

      public String pluginId()
      Returns the value of the pluginId record component.
      Returns:
      the value of the pluginId record component
    • pluginName

      public String pluginName()
      Returns the value of the pluginName record component.
      Returns:
      the value of the pluginName record component
    • pluginVersion

      public String pluginVersion()
      Returns the value of the pluginVersion record component.
      Returns:
      the value of the pluginVersion record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • jarPath

      public Path jarPath()
      Returns the value of the jarPath record component.
      Returns:
      the value of the jarPath record component
    • triggerCount

      public int triggerCount()
      Returns the value of the triggerCount record component.
      Returns:
      the value of the triggerCount record component
    • actionCount

      public int actionCount()
      Returns the value of the actionCount record component.
      Returns:
      the value of the actionCount record component
    • pluginProviderCount

      public int pluginProviderCount()
      Returns the value of the pluginProviderCount record component.
      Returns:
      the value of the pluginProviderCount record component