Package org.pf4j
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 PluginClassLoader
createPluginClassLoader
(Path pluginPath, PluginDescriptor pluginDescriptor) boolean
isApplicable
(Path pluginPath) Returns true if this loader is applicable to the givenPath
.protected void
loadClasses
(Path pluginPath, PluginClassLoader pluginClassLoader) protected void
loadJars
(Path pluginPath, PluginClassLoader pluginClassLoader) loadPlugin
(Path pluginPath, PluginDescriptor pluginDescriptor)
-
Field Details
-
pluginManager
-
pluginClasspath
-
-
Constructor Details
-
BasePluginLoader
-
-
Method Details
-
isApplicable
Description copied from interface:PluginLoader
Returns true if this loader is applicable to the givenPath
.- Specified by:
isApplicable
in interfacePluginLoader
- Parameters:
pluginPath
-- Returns:
-
loadPlugin
- Specified by:
loadPlugin
in interfacePluginLoader
-
createPluginClassLoader
protected PluginClassLoader createPluginClassLoader(Path pluginPath, PluginDescriptor pluginDescriptor) -
loadClasses
-
loadJars
-