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.Loggerlog-
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.FileFiltercreateHiddenPluginFilter()booleandeletePluginPath(java.nio.file.Path pluginPath)Removes a plugin from the repository.private voidextractZipFiles()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:PluginRepositoryList all plugin paths.- Specified by:
getPluginPathsin interfacePluginRepository- Overrides:
getPluginPathsin classBasePluginRepository- 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- Overrides:
deletePluginPathin classBasePluginRepository- Parameters:
pluginPath- the plugin path- Returns:
- true if deleted
-
createHiddenPluginFilter
protected java.io.FileFilter createHiddenPluginFilter()
-
extractZipFiles
private void extractZipFiles()
-
-