public class DirectoryDependencyPathProvider extends java.lang.Object implements CleanupPathProvider
DependencyManager.DependencyManager(Path)| Constructor and Description |
|---|
DirectoryDependencyPathProvider(java.nio.file.Path cacheDirectory)
Creates a
DirectoryDependencyPathProvider. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.nio.file.Path |
getCleanupPath()
Gets the path that should be used for removing unused files using
DependencyManager.cleanupCacheDirectory(). |
@NotNull java.nio.file.Path |
getDependencyPath(@NotNull Dependency dependency,
boolean relocated)
Gets the path that should be used for the provided
Dependency. |
public DirectoryDependencyPathProvider(java.nio.file.Path cacheDirectory)
DirectoryDependencyPathProvider.cacheDirectory - the directory used for downloaded and relocated dependencies.@NotNull public @NotNull java.nio.file.Path getCleanupPath()
CleanupPathProviderDependencyManager.cleanupCacheDirectory().getCleanupPath in interface CleanupPathProvider@NotNull
public @NotNull java.nio.file.Path getDependencyPath(@NotNull
@NotNull Dependency dependency,
boolean relocated)
DependencyPathProviderDependency.getDependencyPath in interface DependencyPathProviderdependency - the dependencyrelocated - if the path should be for the relocated or unrelocated file