Package org.pf4j
Class CompoundPluginRepository
- java.lang.Object
-
- org.pf4j.CompoundPluginRepository
-
- All Implemented Interfaces:
PluginRepository
public class CompoundPluginRepository extends java.lang.Object implements PluginRepository
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<PluginRepository>
repositories
-
Constructor Summary
Constructors Constructor Description CompoundPluginRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompoundPluginRepository
add(PluginRepository repository)
CompoundPluginRepository
add(PluginRepository repository, java.util.function.BooleanSupplier condition)
Add aPluginRepository
only if thecondition
is satisfied.boolean
deletePluginPath(java.nio.file.Path pluginPath)
Removes a plugin from the repository.java.util.List<java.nio.file.Path>
getPluginPaths()
List all plugin paths.
-
-
-
Field Detail
-
repositories
private java.util.List<PluginRepository> repositories
-
-
Method Detail
-
add
public CompoundPluginRepository add(PluginRepository repository)
-
add
public CompoundPluginRepository add(PluginRepository repository, java.util.function.BooleanSupplier condition)
Add aPluginRepository
only if thecondition
is satisfied.- Parameters:
repository
-condition
-- Returns:
-
getPluginPaths
public java.util.List<java.nio.file.Path> getPluginPaths()
Description copied from interface:PluginRepository
List all plugin paths.- Specified by:
getPluginPaths
in interfacePluginRepository
- Returns:
- a list with paths
-
deletePluginPath
public boolean deletePluginPath(java.nio.file.Path pluginPath)
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
-
-