Interface PluginManager


public interface PluginManager
  • Method Details

    • registerLoader

      <T extends PluginLoader> boolean registerLoader(Class<T> clazz, T loader)
    • deregisterLoader

      <T extends PluginLoader> boolean deregisterLoader(Class<T> clazz)
    • getAllPlugins

      Collection<PluginContainer> getAllPlugins()
    • getPlugin

      Checks if the given plugin is loaded and returns it when applicable

      Please note that the name of the plugin is case-sensitive

      Parameters:
      id - Name of the plugin to check
      Returns:
      Plugin if it exists, otherwise null
    • fromInstance

      Optional<PluginContainer> fromInstance(Object instance)
    • isLoaded

      boolean isLoaded(String id)
      Checks if the given plugin is enabled or not
      Parameters:
      id - Plugin to check
      Returns:
      true if the plugin is enabled, otherwise false