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 CompoundPluginRepositoryadd(PluginRepository repository)CompoundPluginRepositoryadd(PluginRepository repository, java.util.function.BooleanSupplier condition)Add aPluginRepositoryonly if theconditionis satisfied.booleandeletePluginPath(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 aPluginRepositoryonly if theconditionis satisfied.- Parameters:
repository-condition-- Returns:
-
getPluginPaths
public java.util.List<java.nio.file.Path> getPluginPaths()
Description copied from interface:PluginRepositoryList all plugin paths.- Specified by:
getPluginPathsin interfacePluginRepository- Returns:
- a list with paths
-
deletePluginPath
public boolean deletePluginPath(java.nio.file.Path pluginPath)
Description copied from interface:PluginRepositoryRemoves a plugin from the repository.- Specified by:
deletePluginPathin interfacePluginRepository- Parameters:
pluginPath- the plugin path- Returns:
- true if deleted
-
-