Package de.foryasee.plugins.loader.impl
Class PluginLoader
- java.lang.Object
-
- de.foryasee.plugins.loader.impl.PluginLoader
-
- All Implemented Interfaces:
IPluginLoader
public class PluginLoader extends java.lang.Object implements IPluginLoader
DefaultIPluginLoaderimplementation.
-
-
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
-
Methods inherited from interface de.foryasee.plugins.loader.IPluginLoader
load
-
-
-
-
Method Detail
-
load
public <T extends Plugin> java.util.concurrent.CompletableFuture<PluginLoadedResult<T>> load(java.io.File file)
Description copied from interface:IPluginLoaderLoads a plugin from a file.- Specified by:
loadin interfaceIPluginLoader- Type Parameters:
T- the type of thePluginimplementation.- Parameters:
file- the .jar that includes thePluginimplementation.- Returns:
- a
CompletableFuture.
-
-