Package com.mcawful

Class CustomPanelManifestRegistry

java.lang.Object
com.mcawful.CustomPanelManifestRegistry

public final class CustomPanelManifestRegistry extends Object
Runtime index built from merged custom-panel manifests so PanelUserHandler can resolve INIDB tables and Rhino scriptPath values to a stock panel section (games, extra, etc.) without hard-coding community module names.

Rebuilt whenever CustomPanelManifestCollector produces a new merged manifest. Nav-only modules that keep settings in bespoke panel JS (no manifest settingsModal) rely on the panel sending section from nav.section on websocket messages.

Author:
mcawful
  • Method Details

    • panelSectionForTable

      public static String panelSectionForTable(String table)
      Parameters:
      table - INIDB table name from a panel DB request
      Returns:
      panel section to check, or null if unknown to custom manifests
    • panelSectionForScript

      public static String panelSectionForScript(String scriptPath)
      Parameters:
      scriptPath - Rhino script path from a panel command or socket event
      Returns:
      panel section to check, or null if unknown to custom manifests