Package de.bytestore.hostinger.handler
Klasse ModulesHandler
java.lang.Object
de.bytestore.hostinger.handler.ModulesHandler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ModuleStatuscast(org.pf4j.PluginWrapper pluginInfo) Casts the plugin state of aPluginWrapperobject to aModuleStatusenum.static booleanDisables a plugin with the specified ID.static booleanEnables a plugin with the specified ID.static ListgetExtensions(Class classIO) Retrieves a list of extensions for the specified class.static booleanInstalls a plugin with the specified ID and version.static voidload()static List<org.pf4j.update.PluginInfo>static List<org.pf4j.PluginWrapper>Loads the list of installed plugins.static voidreload()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 aPluginWrapperobject to aModuleStatusenum.- Parameter:
pluginInfo- thePluginWrapperobject whose plugin state will be casted- Gibt zurück:
- the corresponding
ModuleStatusenum value for the plugin state, orModuleStatus.UNKNOWNif 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
-