Record Class PluginRegistry

java.lang.Object
java.lang.Record
me.pauleff.converter.PluginRegistry
Record Components:
discoveryPlugins - read-only / detection plugins that run before files are changed
miscPlugins - mutating plugins that can run for any server type after confirmation
conversionPlugins - server-type-specific world conversion plugins

public record PluginRegistry(List<MOOCPlugin> discoveryPlugins, List<MOOCPlugin> miscPlugins, List<MOOCPlugin> conversionPlugins) extends Record
Holds the ordered plugin lists used for discovery, misc, and conversion phases.

Construction validates unique plugin ids and sorts each list by PluginMetadata.priority() (lower first), preserving registration order for equal priorities. standard() supplies the built-in plugin set.

See Also:
  • Constructor Details

  • Method Details

    • standard

      public static PluginRegistry standard()
      Returns the built-in registry of discovery, misc, and conversion plugins.
      Returns:
      a PluginRegistry containing the standard plugin set
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • discoveryPlugins

      public List<MOOCPlugin> discoveryPlugins()
      Returns the value of the discoveryPlugins record component.
      Returns:
      the value of the discoveryPlugins record component
    • miscPlugins

      public List<MOOCPlugin> miscPlugins()
      Returns the value of the miscPlugins record component.
      Returns:
      the value of the miscPlugins record component
    • conversionPlugins

      public List<MOOCPlugin> conversionPlugins()
      Returns the value of the conversionPlugins record component.
      Returns:
      the value of the conversionPlugins record component