Class PluginLoader

    • Constructor Summary

      Constructors 
      Constructor Description
      PluginLoader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends Plugin>
      java.util.concurrent.CompletableFuture<PluginLoadedResult<T>>
      load​(java.io.File file)
      Loads a plugin from a file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginLoader

        public PluginLoader()
    • Method Detail

      • load

        public <T extends Plugin> java.util.concurrent.CompletableFuture<PluginLoadedResult<T>> load​(java.io.File file)
        Description copied from interface: IPluginLoader
        Loads a plugin from a file.
        Specified by:
        load in interface IPluginLoader
        Type Parameters:
        T - the type of the Plugin implementation.
        Parameters:
        file - the .jar that includes the Plugin implementation.
        Returns:
        a CompletableFuture.