org.apache.maven.index
Class AndMultiArtifactInfoFilter

java.lang.Object
  extended by org.apache.maven.index.AbstractMultiArtifactInfoFilter
      extended by org.apache.maven.index.AndMultiArtifactInfoFilter
All Implemented Interfaces:
ArtifactInfoFilter

public class AndMultiArtifactInfoFilter
extends AbstractMultiArtifactInfoFilter

This is a aggregated artifact info filter that performs AND operation (all filter has to accept the artifact info, if one rejects, results is reject). It is implemented in "fail fast" way, as soon as some member ArtifactFilter rejects, it will be rejected.

Author:
cstamas

Constructor Summary
AndMultiArtifactInfoFilter(List<ArtifactInfoFilter> filters)
           
 
Method Summary
protected  boolean accepts(List<ArtifactInfoFilter> filters, IndexingContext ctx, ArtifactInfo ai)
          It is left to final implementor to implement how we want to decide using filters.
 
Methods inherited from class org.apache.maven.index.AbstractMultiArtifactInfoFilter
accepts, getFilters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndMultiArtifactInfoFilter

public AndMultiArtifactInfoFilter(List<ArtifactInfoFilter> filters)
Method Detail

accepts

protected boolean accepts(List<ArtifactInfoFilter> filters,
                          IndexingContext ctx,
                          ArtifactInfo ai)
Description copied from class: AbstractMultiArtifactInfoFilter
It is left to final implementor to implement how we want to decide using filters. This method is called only if we _have_ filters set!

Specified by:
accepts in class AbstractMultiArtifactInfoFilter
Returns:


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.