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 aPluginLoaderonly if theconditionis satisfied.booleanisApplicable(Path pluginPath) Returns true if this loader is applicable to the givenPath.loadPlugin(Path pluginPath, PluginDescriptor pluginDescriptor) intsize()
-
Field Details
-
log
private static final org.slf4j.Logger log -
loaders
-
-
Constructor Details
-
CompoundPluginLoader
public CompoundPluginLoader()
-
-
Method Details
-
add
-
add
Add aPluginLoaderonly if theconditionis satisfied.- Parameters:
loader-condition-- Returns:
-
size
public int size() -
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
-