Package org.pf4j
Class CompoundPluginRepository
java.lang.Object
org.pf4j.CompoundPluginRepository
- All Implemented Interfaces:
PluginRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(PluginRepository repository) add
(PluginRepository repository, BooleanSupplier condition) Add aPluginRepository
only if thecondition
is satisfied.boolean
deletePluginPath
(Path pluginPath) Removes a plugin from the repository.List all plugin paths.
-
Field Details
-
repositories
-
-
Constructor Details
-
CompoundPluginRepository
public CompoundPluginRepository()
-
-
Method Details
-
add
-
add
Add aPluginRepository
only if thecondition
is satisfied.- Parameters:
repository
-condition
-- Returns:
-
getPluginPaths
Description copied from interface:PluginRepository
List all plugin paths.- Specified by:
getPluginPaths
in interfacePluginRepository
- Returns:
- a list with paths
-
deletePluginPath
Description copied from interface:PluginRepository
Removes a plugin from the repository.- Specified by:
deletePluginPath
in interfacePluginRepository
- Parameters:
pluginPath
- the plugin path- Returns:
- true if deleted
-