Package org.pf4j
Class DefaultPluginRepository
- java.lang.Object
-
- org.pf4j.BasePluginRepository
-
- org.pf4j.DefaultPluginRepository
-
- All Implemented Interfaces:
PluginRepository
public class DefaultPluginRepository extends BasePluginRepository
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
log
-
Fields inherited from class org.pf4j.BasePluginRepository
comparator, filter, pluginsRoot
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginRepository(java.nio.file.Path pluginsRoot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.FileFilter
createHiddenPluginFilter()
boolean
deletePluginPath(java.nio.file.Path pluginPath)
Removes a plugin from the repository.private void
extractZipFiles()
java.util.List<java.nio.file.Path>
getPluginPaths()
List all plugin paths.-
Methods inherited from class org.pf4j.BasePluginRepository
setComparator, setFilter
-
-
-
-
Method Detail
-
getPluginPaths
public java.util.List<java.nio.file.Path> getPluginPaths()
Description copied from interface:PluginRepository
List all plugin paths.- Specified by:
getPluginPaths
in interfacePluginRepository
- Overrides:
getPluginPaths
in classBasePluginRepository
- 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
- Overrides:
deletePluginPath
in classBasePluginRepository
- Parameters:
pluginPath
- the plugin path- Returns:
- true if deleted
-
createHiddenPluginFilter
protected java.io.FileFilter createHiddenPluginFilter()
-
extractZipFiles
private void extractZipFiles()
-
-