Module org.spongepowered.plugin.spi
Package org.spongepowered.plugin
Interface PluginLoader<P extends PluginContainer>
- Type Parameters:
P
- The container type
public interface PluginLoader<P extends PluginContainer>
A loader used to create and load
plugins
.
Implementors of this class are required to have a no-args constructor
-
Method Summary
Modifier and TypeMethodDescriptionloadPlugin
(Environment environment, PluginCandidate candidate, ClassLoader targetClassLoader) version()
-
Method Details
-
version
ArtifactVersion version()- Returns:
- The
version
, as a maven artifact
-
loadPlugin
P loadPlugin(Environment environment, PluginCandidate candidate, ClassLoader targetClassLoader) throws InvalidPluginException - Parameters:
environment
- The environmentcandidate
- The candidatetargetClassLoader
- The classloader- Throws:
InvalidPluginException
- If the candidate is invalid
-