public abstract class DependencyFilter
extends org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
ArtifactsFilter based on a FilterableDependency list.| 构造器和说明 |
|---|
DependencyFilter(java.util.List<? extends FilterableDependency> dependencies)
Create a new instance with the list of
FilterableDependency instance(s) to
use. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
equals(org.apache.maven.artifact.Artifact artifact,
FilterableDependency dependency)
Check if the specified
Artifact matches the
specified FilterableDependency. |
protected abstract boolean |
filter(org.apache.maven.artifact.Artifact artifact) |
java.util.Set<org.apache.maven.artifact.Artifact> |
filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts) |
protected java.util.List<? extends FilterableDependency> |
getFilters() |
public DependencyFilter(java.util.List<? extends FilterableDependency> dependencies)
FilterableDependency instance(s) to
use.dependencies - the source dependenciespublic java.util.Set<org.apache.maven.artifact.Artifact> filter(java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
throws org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterExceptionprotected abstract boolean filter(org.apache.maven.artifact.Artifact artifact)
protected final boolean equals(org.apache.maven.artifact.Artifact artifact,
FilterableDependency dependency)
Artifact matches the
specified FilterableDependency. Returns
true if it should be excludedartifact - the Maven Artifactdependency - the FilterableDependencytrue if the artifact matches the dependencyprotected final java.util.List<? extends FilterableDependency> getFilters()