Interface PluginHandler


public interface PluginHandler
Handles the plugins.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToClassPath(@NotNull Plugin plugin, @NotNull Path path)
    Adds the specified Path to the plugins classpath.
    boolean
    loaded(@NotNull String name)
    Check if a plugin is available.
    @Nullable Plugin
    plugin(@NotNull String name)
    Gets a plugin by its name.
    @NotNull Collection<Plugin>
    Gets a collection of all loaded plugins.
  • Method Details

    • loaded

      boolean loaded(@NotNull @NotNull String name)
      Check if a plugin is available.
      Parameters:
      name - the plugin
      Returns:
      true if its loaded
      Since:
      1.0.0
    • plugin

      @Nullable @Nullable Plugin plugin(@NotNull @NotNull String name)
      Gets a plugin by its name.
      Parameters:
      name - the name of the plugin
      Returns:
      the plugin or null
      Since:
      1.0.0
    • plugins

      @NotNull @NotNull Collection<Plugin> plugins()
      Gets a collection of all loaded plugins.
      Returns:
      all loaded plugins
      Since:
      1.0.0
    • addToClassPath

      void addToClassPath(@NotNull @NotNull Plugin plugin, @NotNull @NotNull Path path)
      Adds the specified Path to the plugins classpath.
      Parameters:
      plugin - the plugin
      path - the path