Class PluginService


  • public final class PluginService
    extends Object
    This class provides services and utilities for plugins management
    • Method Detail

      • getPluginList

        public static Collection<Plugin> getPluginList()
        Returns the plugins file list
        Returns:
        the plugins file list as a File[]
      • getPlugin

        public static Plugin getPlugin​(String strPluginName)
        Returns a Plugin object from its name
        Parameters:
        strPluginName - The name of the plugin
        Returns:
        The Plugin object corresponding to the name
      • getCore

        public static Plugin getCore()
        Gets the core.
        Returns:
        the core
      • updatePluginData

        public static void updatePluginData​(Plugin plugin)
        Update plugins data.
        Parameters:
        plugin - The plugin object
      • isPluginEnable

        public static boolean isPluginEnable​(String strPluginName)
        Gets the plugin status enable / disable
        Parameters:
        strPluginName - The plugin name
        Returns:
        True if the plugin is enable, otherwise false
      • registerPluginEventListener

        public static void registerPluginEventListener​(PluginEventListener listener)
        Register a Plugin Event Listener
        Parameters:
        listener - The listener
      • notifyListeners

        public static void notifyListeners​(PluginEvent event)
        Notify an event to all Plugin Event Listeners
        Parameters:
        event - The event