Package de.bytestore.hostinger.handler
Klasse ModulesHandler
java.lang.Object
de.bytestore.hostinger.handler.ModulesHandler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ModuleStatus
cast
(org.pf4j.PluginWrapper pluginInfo) Casts the plugin state of aPluginWrapper
object to aModuleStatus
enum.static boolean
Disables a plugin with the specified ID.static boolean
Enables a plugin with the specified ID.static List
getExtensions
(Class classIO) Retrieves a list of extensions for the specified class.static boolean
Installs a plugin with the specified ID and version.static void
load()
static List<org.pf4j.update.PluginInfo>
static List<org.pf4j.PluginWrapper>
Loads the list of installed plugins.static void
reload()
Reloads the application, refreshing the update repository and restarting all plugins.static boolean
-
Konstruktordetails
-
ModulesHandler
public ModulesHandler()
-
-
Methodendetails
-
load
public static void load() -
loadAvailable
-
loadInstalled
Loads the list of installed plugins.- Gibt zurück:
- the list of installed PluginWrapper objects
-
install
Installs a plugin with the specified ID and version.- Parameter:
idIO
- the ID of the plugin to installversionIO
- the version of the plugin to install- Gibt zurück:
- true if the plugin installation is successful, false otherwise
-
enable
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
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
-
reload
public static void reload()Reloads the application, refreshing the update repository and restarting all plugins. -
cast
Casts the plugin state of aPluginWrapper
object to aModuleStatus
enum.- Parameter:
pluginInfo
- thePluginWrapper
object whose plugin state will be casted- Gibt zurück:
- the corresponding
ModuleStatus
enum value for the plugin state, orModuleStatus.UNKNOWN
if no matching enum value is found
-
getExtensions
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
-