Package io.joshworks.snappy.maven
Class DependencyFilter
- java.lang.Object
-
- org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
-
- io.joshworks.snappy.maven.DependencyFilter
-
- All Implemented Interfaces:
org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter
- Direct Known Subclasses:
ExcludeFilter,IncludeFilter
public abstract class DependencyFilter extends org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilterBase class forArtifactsFilterbased on aFilterableDependencylist.- Since:
- 1.2
- Author:
- Stephane Nicoll, David Turanski
-
-
Constructor Summary
Constructors Constructor Description DependencyFilter(java.util.List<? extends io.joshworks.snappy.maven.FilterableDependency> dependencies)Create a new instance with the list ofFilterableDependencyinstance(s) to use.
-
Method Summary
Modifier and Type Method Description protected booleanequals(org.apache.maven.artifact.Artifact artifact, io.joshworks.snappy.maven.FilterableDependency dependency)Check if the specifiedArtifactmatches the specifiedFilterableDependency.java.util.Setfilter(java.util.Set artifacts)protected abstract booleanfilter(org.apache.maven.artifact.Artifact artifact)protected java.util.List<? extends io.joshworks.snappy.maven.FilterableDependency>getFilters()
-
-
-
Method Detail
-
filter
public java.util.Set filter(java.util.Set artifacts) throws org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException- Throws:
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
-
filter
protected abstract boolean filter(org.apache.maven.artifact.Artifact artifact)
-
equals
protected final boolean equals(org.apache.maven.artifact.Artifact artifact, io.joshworks.snappy.maven.FilterableDependency dependency)Check if the specifiedArtifactmatches the specifiedFilterableDependency. Returnstrueif it should be excluded- Parameters:
artifact- the MavenArtifactdependency- theFilterableDependency- Returns:
trueif the artifact matches the dependency
-
getFilters
protected final java.util.List<? extends io.joshworks.snappy.maven.FilterableDependency> getFilters()
-
-