public abstract class DependencyManager
extends java.lang.Object
| Constructor and Description |
|---|
DependencyManager(PluginLogger logger,
java.nio.file.Path dataDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addToClasspath(java.nio.file.Path file)
Adds a file to the plugin's classpath.
|
java.nio.file.Path |
downloadDependency(DynamicDependency dependency) |
void |
loadLibrary(DynamicDependency dependency)
Loads a library jar into the plugin's classpath.
|
public DependencyManager(PluginLogger logger, java.nio.file.Path dataDirectory)
protected abstract void addToClasspath(java.nio.file.Path file)
file - the file to addpublic java.nio.file.Path downloadDependency(DynamicDependency dependency)
public void loadLibrary(DynamicDependency dependency)
If the provided library has any relocations, they will be applied to create a relocated jar and the relocated jar will be loaded instead.
dependency - the dependency to load(dependency)