Package de.foryasee.plugins.loader
Interface IPluginLoader
-
- All Known Implementing Classes:
PluginLoader
public interface IPluginLoaderHandles the loading ofPlugins.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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.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.
-
-
-
Method Detail
-
load
<T extends Plugin> java.util.concurrent.CompletableFuture<PluginLoadedResult<T>> load(java.io.File file)
Loads a plugin from a file.
-
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)
-
-