org.jboss.shrinkwrap.resolver.api.maven.strategy
Class CombinedStrategy
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombinedStrategy
public CombinedStrategy(MavenResolutionStrategy... strategies)
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:
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.