ShrinkWrap Resolver Maven API 1.0.0-beta-6

org.jboss.shrinkwrap.resolver.api.maven.filter
Class CombinedFilter

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.api.maven.filter.CombinedFilter
All Implemented Interfaces:
DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>, MavenResolutionFilter

public class CombinedFilter
extends Object
implements MavenResolutionFilter

A combinator for multiple filters.

Author:
Karel Piwko

Constructor Summary
CombinedFilter(MavenResolutionFilter... filters)
          Combines multiple filters in a such way that all must pass.
 
Method Summary
 boolean accept(MavenDependency element)
           
 MavenResolutionFilter configure(Collection<MavenDependency> dependencies)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedFilter

public CombinedFilter(MavenResolutionFilter... filters)
Combines multiple filters in a such way that all must pass. Implementation note: The varargs arguments cannot have a type bound, because this leads to an unchecked cast while invoked

Parameters:
filters - The filters to be combined
Throws:
DependencyException - If any of the filter cannot be used to filter MavenDependencies
See Also:
MavenBuilderImpl
Method Detail

configure

public MavenResolutionFilter configure(Collection<MavenDependency> dependencies)
Specified by:
configure in interface MavenResolutionFilter

accept

public boolean accept(MavenDependency element)
Specified by:
accept in interface DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>
Specified by:
accept in interface MavenResolutionFilter

ShrinkWrap Resolver Maven API 1.0.0-beta-6

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.