@Named @Singleton public class ScopedProjectDependencyCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ScopedProjectDependencyCache.Key |
Constructor and Description |
---|
ScopedProjectDependencyCache() |
Modifier and Type | Method and Description |
---|---|
Map<IArtifactMetadata,Path> |
getDependencies(ScopedProjectDependencyCache.Key key,
Supplier<Map<IArtifactMetadata,Path>> supplier)
Returns a cached set of resolved artifacts for the given key
|
static ScopedProjectDependencyCache.Key |
key(String groupId,
String artifactId,
String version,
ResolutionScope scope,
boolean transitive) |
public static ScopedProjectDependencyCache.Key key(String groupId, String artifactId, String version, ResolutionScope scope, boolean transitive)
public Map<IArtifactMetadata,Path> getDependencies(ScopedProjectDependencyCache.Key key, Supplier<Map<IArtifactMetadata,Path>> supplier)
key
- supplier
- - will be called if the lookup returns no cached valueCopyright © 2021. All rights reserved.