Interface IPluginLoader

  • All Known Implementing Classes:
    PluginLoader

    public interface IPluginLoader
    Handles the loading of Plugins.
    • Method Detail

      • load

        <T extends Plugin> java.util.concurrent.CompletableFuture<PluginLoadedResult<T>> load​(java.io.File file)
        Loads a plugin from a file.
        Type Parameters:
        T - the type of the Plugin implementation.
        Parameters:
        file - the .jar that includes the Plugin implementation.
        Returns:
        a CompletableFuture.
      • load

        default <T extends Plugin> java.util.concurrent.CompletableFuture<PluginLoadedResult<T>> load​(java.lang.String file)
        Loads a plugin from a 'String' that is the location of the plugin file.
        Parameters:
        file - the location of the file.
        See Also:
        load(File)