ShrinkWrap Resolver Aggregator 1.1.0-alpha-2

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)
          Accepts element of type E
 MavenResolutionFilter configure(Collection<MavenDependency> dependencies)
          Passed the current MavenDependencyResolver configuration to the filter to allow it do some advanced filtering
 
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)
Description copied from interface: MavenResolutionFilter
Passed the current MavenDependencyResolver configuration to the filter to allow it do some advanced filtering

Specified by:
configure in interface MavenResolutionFilter
Parameters:
dependencies - The dependencies to be set to the filter
Returns:
configured filter

accept

public boolean accept(MavenDependency element)
Description copied from interface: DependencyResolutionFilter
Accepts element of type E

Specified by:
accept in interface DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>
Specified by:
accept in interface MavenResolutionFilter
Parameters:
element - the element
Returns:
true if accepted by the filter, false otherwise

ShrinkWrap Resolver Aggregator 1.1.0-alpha-2

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.