Class DependencyResolutionSkipper.DefaultDependencyResolutionSkipper
- java.lang.Object
-
- org.eclipse.aether.internal.impl.collect.bf.DependencyResolutionSkipper
-
- org.eclipse.aether.internal.impl.collect.bf.DependencyResolutionSkipper.DefaultDependencyResolutionSkipper
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- DependencyResolutionSkipper
static final class DependencyResolutionSkipper.DefaultDependencyResolutionSkipper extends DependencyResolutionSkipper
Visible for testing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DependencyResolutionSkipper.DefaultDependencyResolutionSkipper.CacheManager
private static class
DependencyResolutionSkipper.DefaultDependencyResolutionSkipper.Coordinate
private static class
DependencyResolutionSkipper.DefaultDependencyResolutionSkipper.CoordinateManager
-
Nested classes/interfaces inherited from class org.eclipse.aether.internal.impl.collect.bf.DependencyResolutionSkipper
DependencyResolutionSkipper.DefaultDependencyResolutionSkipper, DependencyResolutionSkipper.DependencyResolutionResult
-
-
Field Summary
Fields Modifier and Type Field Description private DependencyResolutionSkipper.DefaultDependencyResolutionSkipper.CacheManager
cacheManager
private DependencyResolutionSkipper.DefaultDependencyResolutionSkipper.CoordinateManager
coordinateManager
private static org.slf4j.Logger
LOGGER
private java.util.Map<DependencyNode,DependencyResolutionSkipper.DependencyResolutionResult>
results
-
Constructor Summary
Constructors Constructor Description DefaultDependencyResolutionSkipper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cache(DependencyNode node, java.util.List<DependencyNode> parents)
Cache the resolution result when a node is resolved by {@link BfDependencyCollector) after resolution.void
close()
Close: Print the skip/resolve status report for all nodes.java.util.Map<DependencyNode,DependencyResolutionSkipper.DependencyResolutionResult>
getResults()
boolean
skipResolution(DependencyNode node, java.util.List<DependencyNode> parents)
Check whether the resolution of current node can be skipped before resolving.-
Methods inherited from class org.eclipse.aether.internal.impl.collect.bf.DependencyResolutionSkipper
defaultSkipper, neverSkipper
-
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
results
private final java.util.Map<DependencyNode,DependencyResolutionSkipper.DependencyResolutionResult> results
-
cacheManager
private final DependencyResolutionSkipper.DefaultDependencyResolutionSkipper.CacheManager cacheManager
-
coordinateManager
private final DependencyResolutionSkipper.DefaultDependencyResolutionSkipper.CoordinateManager coordinateManager
-
-
Method Detail
-
skipResolution
public boolean skipResolution(DependencyNode node, java.util.List<DependencyNode> parents)
Description copied from class:DependencyResolutionSkipper
Check whether the resolution of current node can be skipped before resolving.- Specified by:
skipResolution
in classDependencyResolutionSkipper
- Parameters:
node
- Current nodeparents
- All parent nodes of current node- Returns:
true
if the node can be skipped for resolution,false
if resolution required.
-
cache
public void cache(DependencyNode node, java.util.List<DependencyNode> parents)
Description copied from class:DependencyResolutionSkipper
Cache the resolution result when a node is resolved by {@link BfDependencyCollector) after resolution.- Specified by:
cache
in classDependencyResolutionSkipper
- Parameters:
node
- Current nodeparents
- All parent nodes of current node
-
close
public void close()
Description copied from class:DependencyResolutionSkipper
Close: Print the skip/resolve status report for all nodes.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classDependencyResolutionSkipper
-
getResults
public java.util.Map<DependencyNode,DependencyResolutionSkipper.DependencyResolutionResult> getResults()
-
-