ShrinkWrap Resolver Maven API 2.0.0-alpha-3

org.jboss.shrinkwrap.resolver.api.maven.strategy
Class CombinedStrategy

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.api.maven.strategy.CombinedStrategy
All Implemented Interfaces:
MavenResolutionStrategy, ResolutionStrategy<MavenDependency,MavenResolutionFilter,MavenResolutionStrategy>

public class CombinedStrategy
extends Object
implements MavenResolutionStrategy

MavenResolutionStrategy implementation where only MavenDependencys passing a series of other MavenResolutionStrategys are accepted

Author:
Karel Piwko, Andrew Lee Rubinger

Constructor Summary
CombinedStrategy(MavenResolutionStrategy... strategies)
           
 
Method Summary
 MavenResolutionFilter[] getPreResolutionFilters()
          Obtains the MavenResolutionFilter chain to be used in filtering a MavenDependency List before the request is executed.
 MavenResolutionFilter[] getResolutionFilters()
          Obtains the MavenResolutionFilter chain to be used in filtering a MavenDependency List during request processing (filtering is done by the backend).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedStrategy

public CombinedStrategy(MavenResolutionStrategy... strategies)
Method Detail

getPreResolutionFilters

public MavenResolutionFilter[] getPreResolutionFilters()
Description copied from interface: MavenResolutionStrategy
Obtains the MavenResolutionFilter chain to be used in filtering a MavenDependency List before the request is executed. If any filters in the chain return false when MavenResolutionFilter.accepts(MavenDependency, List) is invoked, false must be the result of the chain's invocation. In other words, the chain acts as a logical AND for all MavenResolutionFilters.

Specified by:
getPreResolutionFilters in interface MavenResolutionStrategy
Returns:

getResolutionFilters

public MavenResolutionFilter[] getResolutionFilters()
Description copied from interface: MavenResolutionStrategy
Obtains the MavenResolutionFilter chain to be used in filtering a MavenDependency List during request processing (filtering is done by the backend). If any filters in the chain return false when MavenResolutionFilter.accepts(MavenDependency, List) is invoked, false must be the result of the chain's invocation. In other words, the chain acts as a logical AND for all MavenResolutionFilters.

Specified by:
getResolutionFilters in interface MavenResolutionStrategy
Returns:

ShrinkWrap Resolver Maven API 2.0.0-alpha-3

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