Package org.spongepowered.plugin
Interface PluginLoader<R extends PluginResource,P extends PluginContainer>
-
- Type Parameters:
R
- The resource typeP
- The container type
- All Known Implementing Classes:
JVMPluginLoader
public interface PluginLoader<R extends PluginResource,P extends PluginContainer>
A loader used to create and loadplugins
.Implementors of this class are required to have a no-args constructor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description P
loadPlugin(Environment environment, PluginCandidate<R> candidate, ClassLoader targetClassLoader)
org.apache.maven.artifact.versioning.ArtifactVersion
version()
-
-
-
Method Detail
-
version
org.apache.maven.artifact.versioning.ArtifactVersion version()
- Returns:
- The
version
, as a maven artifact
-
loadPlugin
P loadPlugin(Environment environment, PluginCandidate<R> candidate, ClassLoader targetClassLoader) throws InvalidPluginException
- Parameters:
environment
- The environmentcandidate
- The candidatetargetClassLoader
- The classloader- Throws:
InvalidPluginException
- If the candidate is invalid
-
-