Class BasePluginLoader
java.lang.Object
org.pf4j.BasePluginLoader
- All Implemented Interfaces:
PluginLoader
- Direct Known Subclasses:
DefaultPluginLoader, DevelopmentPluginLoader
Load all information needed by a plugin.
This means add to the plugin's
ClassLoader all the jar files and
all the class files specified in the PluginClasspath.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasePluginLoader(PluginManager pluginManager, PluginClasspath pluginClasspath) -
Method Summary
Modifier and TypeMethodDescriptionprotected PluginClassLoadercreatePluginClassLoader(Path pluginPath, PluginDescriptor pluginDescriptor) booleanisApplicable(Path pluginPath) Returns true if this loader is applicable to the givenPath.protected voidloadClasses(Path pluginPath, PluginClassLoader pluginClassLoader) protected voidloadJars(Path pluginPath, PluginClassLoader pluginClassLoader) loadPlugin(Path pluginPath, PluginDescriptor pluginDescriptor)
-
Field Details
-
pluginManager
-
pluginClasspath
-
-
Constructor Details
-
BasePluginLoader
-
-
Method Details
-
isApplicable
Description copied from interface:PluginLoaderReturns true if this loader is applicable to the givenPath.- Specified by:
isApplicablein interfacePluginLoader- Parameters:
pluginPath-- Returns:
-
loadPlugin
- Specified by:
loadPluginin interfacePluginLoader
-
createPluginClassLoader
protected PluginClassLoader createPluginClassLoader(Path pluginPath, PluginDescriptor pluginDescriptor) -
loadClasses
-
loadJars
-