Klasse ModulesHandler

java.lang.Object
de.bytestore.hostinger.handler.ModulesHandler

public class ModulesHandler extends Object
  • Konstruktordetails

    • ModulesHandler

      public ModulesHandler()
  • Methodendetails

    • load

      public static void load()
    • loadAvailable

      public static List<org.pf4j.update.PluginInfo> loadAvailable()
    • loadInstalled

      public static List<org.pf4j.PluginWrapper> loadInstalled()
      Loads the list of installed plugins.
      Gibt zurück:
      the list of installed PluginWrapper objects
    • install

      public static boolean install(String idIO, String versionIO)
      Installs a plugin with the specified ID and version.
      Parameter:
      idIO - the ID of the plugin to install
      versionIO - the version of the plugin to install
      Gibt zurück:
      true if the plugin installation is successful, false otherwise
    • enable

      public static boolean enable(String idIO)
      Enables a plugin with the specified ID.
      Parameter:
      idIO - the ID of the plugin to enable
      Gibt zurück:
      true if the plugin is successfully enabled, false otherwise
    • disable

      public static boolean disable(String idIO)
      Disables a plugin with the specified ID.
      Parameter:
      idIO - the ID of the plugin to disable
      Gibt zurück:
      true if the plugin is successfully disabled, false otherwise
    • remove

      public static boolean remove(String id)
    • reload

      public static void reload()
      Reloads the application, refreshing the update repository and restarting all plugins.
    • cast

      public static ModuleStatus cast(org.pf4j.PluginWrapper pluginInfo)
      Casts the plugin state of a PluginWrapper object to a ModuleStatus enum.
      Parameter:
      pluginInfo - the PluginWrapper object whose plugin state will be casted
      Gibt zurück:
      the corresponding ModuleStatus enum value for the plugin state, or ModuleStatus.UNKNOWN if no matching enum value is found
    • getExtensions

      public static List getExtensions(Class classIO)
      Retrieves a list of extensions for the specified class.
      Parameter:
      classIO - the class for which the extensions are needed
      Gibt zurück:
      a list of extensions for the specified class