public final class ExclusionDependencySelector extends java.lang.Object implements DependencySelector
Dependency.getExclusions()| Modifier and Type | Class and Description |
|---|---|
private static class |
ExclusionDependencySelector.ExclusionComparator |
| Modifier and Type | Field and Description |
|---|---|
private Exclusion[] |
exclusions |
private int |
hashCode |
| Modifier | Constructor and Description |
|---|---|
|
ExclusionDependencySelector()
Creates a new selector without any exclusions.
|
|
ExclusionDependencySelector(java.util.Collection<Exclusion> exclusions)
Creates a new selector with the specified exclusions.
|
private |
ExclusionDependencySelector(Exclusion[] exclusions) |
| Modifier and Type | Method and Description |
|---|---|
DependencySelector |
deriveChildSelector(DependencyCollectionContext context)
Derives a dependency selector for the specified collection context.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
private boolean |
matches(Exclusion exclusion,
Artifact artifact) |
private boolean |
matches(java.lang.String pattern,
java.lang.String value) |
boolean |
selectDependency(Dependency dependency)
Decides whether the specified dependency should be included in the dependency graph.
|
private final Exclusion[] exclusions
private int hashCode
public ExclusionDependencySelector()
public ExclusionDependencySelector(java.util.Collection<Exclusion> exclusions)
exclusions - The exclusions, may be null.private ExclusionDependencySelector(Exclusion[] exclusions)
public boolean selectDependency(Dependency dependency)
DependencySelectorselectDependency in interface DependencySelectordependency - The dependency to check, must not be null.false if the dependency should be excluded from the children of the current node, true
otherwise.private boolean matches(java.lang.String pattern,
java.lang.String value)
public DependencySelector deriveChildSelector(DependencyCollectionContext context)
DependencySelectorderiveChildSelector in interface DependencySelectorcontext - The dependency collection context, must not be null.null if dependencies should be unconditionally
included in the sub graph.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object