Package org.pf4j
Class CompoundPluginLoader
java.lang.Object
org.pf4j.CompoundPluginLoader
- All Implemented Interfaces:
PluginLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<PluginLoader> private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(PluginLoader loader) add
(PluginLoader loader, BooleanSupplier condition) Add aPluginLoader
only if thecondition
is satisfied.boolean
isApplicable
(Path pluginPath) Returns true if this loader is applicable to the givenPath
.loadPlugin
(Path pluginPath, PluginDescriptor pluginDescriptor) int
size()
-
Field Details
-
log
private static final org.slf4j.Logger log -
loaders
-
-
Constructor Details
-
CompoundPluginLoader
public CompoundPluginLoader()
-
-
Method Details
-
add
-
add
Add aPluginLoader
only if thecondition
is satisfied.- Parameters:
loader
-condition
-- Returns:
-
size
public int size() -
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
-