|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.index.AbstractMultiArtifactInfoFilter
public abstract class AbstractMultiArtifactInfoFilter
An abstract helper class for implementing ArtifactInfoFilter that actually aggregates multiple filters into one. It is up to developer to implement how will be they behave ("fail-fast", or "one-vote-enough for passing", etc).
Constructor Summary | |
---|---|
AbstractMultiArtifactInfoFilter(List<ArtifactInfoFilter> filters)
|
Method Summary | |
---|---|
boolean |
accepts(IndexingContext ctx,
ArtifactInfo ai)
The filter's implementation is: if list of filters is empty, the just accept it, otherwise consult the list of filters. |
protected abstract boolean |
accepts(List<ArtifactInfoFilter> filters,
IndexingContext ctx,
ArtifactInfo ai)
It is left to final implementor to implement how we want to decide using filters. |
List<ArtifactInfoFilter> |
getFilters()
Returns an unmodifiable list of filters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMultiArtifactInfoFilter(List<ArtifactInfoFilter> filters)
Method Detail |
---|
public List<ArtifactInfoFilter> getFilters()
public boolean accepts(IndexingContext ctx, ArtifactInfo ai)
accepts
in interface ArtifactInfoFilter
protected abstract boolean accepts(List<ArtifactInfoFilter> filters, IndexingContext ctx, ArtifactInfo ai)
filters
- ctx
- ai
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |