Package io.manebot.plugin.loader
Interface PluginLoader
-
public interface PluginLoader
-
-
Method Summary
Modifier and Type Method Description java.util.Collection<ArtifactDependency>getDependencies(Artifact artifact)Finds a list of plugin artifact dependencies for a given plugin artifact.Pluginload(LocalArtifact artifact)Loads a plugin based on its local artifact.
-
-
-
Method Detail
-
load
Plugin load(LocalArtifact artifact) throws PluginLoadException, java.io.FileNotFoundException
Loads a plugin based on its local artifact.- Parameters:
artifact- Plugin artifact to load.- Returns:
- Plugin instance.
- Throws:
PluginLoadExceptionjava.io.FileNotFoundException
-
getDependencies
java.util.Collection<ArtifactDependency> getDependencies(Artifact artifact) throws ArtifactNotFoundException
Finds a list of plugin artifact dependencies for a given plugin artifact.- Parameters:
artifact- Plugin artifact to find dependencies for.- Returns:
- immutable collection of plugin dependencies.
- Throws:
ArtifactNotFoundException
-
-