|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.resolver.api.maven.strategy.RejectDependenciesStrategy
public class RejectDependenciesStrategy
MavenResolutionStrategy implementation where specified MavenDependencys may be selectively rejected
| Constructor Summary | |
|---|---|
RejectDependenciesStrategy(boolean rejectTransitives,
String... coordinates)
Bans all dependencies specified by coordinates possibly including all transitive dependencies that might be fetched by resolving coordinates. |
|
RejectDependenciesStrategy(String... coordinates)
Bans all dependencies specified by coordinates including all transitive dependencies that might be fetched by resolving coordinates. |
|
| Method Summary | |
|---|---|
MavenResolutionFilter[] |
getResolutionFilters()
Returns a MavenResolutionFilter chain blocking MavenDependencys with coordinates supplied at
instance construction |
TransitiveExclusionPolicy |
getTransitiveExclusionPolicy()
Defines how transitive dependencies are filtered during the resolution request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RejectDependenciesStrategy(String... coordinates)
throws IllegalArgumentException,
CoordinateParseException
coordinates - Coordinates to be banned
IllegalArgumentException - If no coordinates are specified
CoordinateParseException - If coordinates does not follow required format
public RejectDependenciesStrategy(boolean rejectTransitives,
String... coordinates)
throws IllegalArgumentException,
CoordinateParseException
rejectTransitives - Flag to allow rejecting transitive dependencies of specified coordinatescoordinates - Coordinates to be banned
IllegalArgumentException - If no coordinates are specified
CoordinateParseException - If coordinates does not follow required format| Method Detail |
|---|
public MavenResolutionFilter[] getResolutionFilters()
MavenResolutionFilter chain blocking MavenDependencys with coordinates supplied at
instance construction
getResolutionFilters in interface MavenResolutionStrategyorg.jboss.shrinkwrap.resolver.api.maven.strategy.MavenResolutionStrategy#getPreResolutionFilters()public TransitiveExclusionPolicy getTransitiveExclusionPolicy()
DefaultTransitiveExclusionPolicy.INSTANCE implementation.
getTransitiveExclusionPolicy in interface MavenResolutionStrategyTransitiveExclusionPolicy, never nullMavenResolutionStrategy.getTransitiveExclusionPolicy()
|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||