ShrinkWrap Resolver Maven API 2.0.0-cr-1

org.jboss.shrinkwrap.resolver.api.maven.strategy
Enum TransitiveStrategy

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

public enum TransitiveStrategy
extends Enum<TransitiveStrategy>
implements MavenResolutionStrategy

MavenResolutionStrategy implementation where MavenDependencys are accepted based on transitivity. This is implemented as a pass-through filter, as the backend will be supplying the transitive dependencies; we'll just allow them.

Author:
Karel Piwko, Andrew Lee Rubinger

Enum Constant Summary
INSTANCE
           
 
Method Summary
 MavenResolutionFilter[] getResolutionFilters()
          Returns a MavenResolutionFilter chain allowing all MavenDependencys to pass-through.
 TransitiveExclusionPolicy getTransitiveExclusionPolicy()
          Defines how transitive dependencies are filtered during the resolution request.
static TransitiveStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TransitiveStrategy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final TransitiveStrategy INSTANCE
Method Detail

values

public static TransitiveStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TransitiveStrategy c : TransitiveStrategy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TransitiveStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getResolutionFilters

public MavenResolutionFilter[] getResolutionFilters()
Returns a MavenResolutionFilter chain allowing all MavenDependencys to pass-through.

Specified by:
getResolutionFilters in interface MavenResolutionStrategy
Returns:
See Also:
org.jboss.shrinkwrap.resolver.api.maven.strategy.MavenResolutionStrategy#getPreResolutionFilters()

getTransitiveExclusionPolicy

public TransitiveExclusionPolicy getTransitiveExclusionPolicy()
Defines how transitive dependencies are filtered during the resolution request. For default Maven-compliant behavior, use the DefaultTransitiveExclusionPolicy.INSTANCE implementation.

Specified by:
getTransitiveExclusionPolicy in interface MavenResolutionStrategy
Returns:
The TransitiveExclusionPolicy, never null
See Also:
MavenResolutionStrategy.getTransitiveExclusionPolicy()

ShrinkWrap Resolver Maven API 2.0.0-cr-1

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