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 aPluginRepositoryonly if theconditionis satisfied.booleandeletePluginPath(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 aPluginRepositoryonly if theconditionis satisfied.- Parameters:
repository-condition-- Returns:
-
getPluginPaths
Description copied from interface:PluginRepositoryList all plugin paths.- Specified by:
getPluginPathsin interfacePluginRepository- Returns:
- a list with paths
-
deletePluginPath
Description copied from interface:PluginRepositoryRemoves a plugin from the repository.- Specified by:
deletePluginPathin interfacePluginRepository- Parameters:
pluginPath- the plugin path- Returns:
- true if deleted
-