ShrinkWrap Resolver Maven API 2.0.0-alpha-3

org.jboss.shrinkwrap.resolver.api.maven.coordinate
Class MavenDependencies

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies

public final class MavenDependencies
extends Object

Factory class for creating new MavenDependency instances

Author:
Andrew Lee Rubinger

Method Summary
static MavenDependency createDependency(MavenCoordinate coordinate, ScopeType scope, boolean optional, MavenDependencyExclusion... exclusions)
          Creates a new MavenDependency instance from the specified properties.
static MavenDependency createDependency(String canonicalForm, ScopeType scope, boolean optional, MavenDependencyExclusion... exclusions)
          Creates a new MavenDependency instance from the specified, required canonical form in format :[:[:]][:], with the additional, optional properties.
static MavenDependencyExclusion createExclusion(String canonicalForm)
          Creates a new MavenDependencyExclusion instance from the specified, required canonical form in format :
static MavenDependencyExclusion createExclusion(String groupId, String artifactId)
          Creates a new MavenDependencyExclusion instance from the specified, required arguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDependency

public static MavenDependency createDependency(String canonicalForm,
                                               ScopeType scope,
                                               boolean optional,
                                               MavenDependencyExclusion... exclusions)
                                        throws IllegalArgumentException,
                                               CoordinateParseException
Creates a new MavenDependency instance from the specified, required canonical form in format :[:[:]][:], with the additional, optional properties. If no ScopeType is specified, default will be ScopeType.COMPILE.

Parameters:
canonicalForm -
scope -
optional -
exclusions -
Returns:
Throws:
IllegalArgumentException - If the canonical form is not supplied
CoordinateParseException - If the specified canonical form is not valid

createDependency

public static MavenDependency createDependency(MavenCoordinate coordinate,
                                               ScopeType scope,
                                               boolean optional,
                                               MavenDependencyExclusion... exclusions)
                                        throws IllegalArgumentException,
                                               CoordinateParseException
Creates a new MavenDependency instance from the specified properties. If no ScopeType is specified, default will be ScopeType.COMPILE.

Parameters:
coordinate -
scope -
optional -
exclusions -
Returns:
Throws:
IllegalArgumentException - If the coordinate is not supplied
CoordinateParseException - If the specified canonical form is not valid

createExclusion

public static MavenDependencyExclusion createExclusion(String canonicalForm)
                                                throws IllegalArgumentException,
                                                       CoordinateParseException
Creates a new MavenDependencyExclusion instance from the specified, required canonical form in format :

Parameters:
canonicalForm -
Returns:
Throws:
IllegalArgumentException - If the canonical form is not supplied
CoordinateParseException - If the canonical form is not in the correct format

createExclusion

public static MavenDependencyExclusion createExclusion(String groupId,
                                                       String artifactId)
                                                throws IllegalArgumentException
Creates a new MavenDependencyExclusion instance from the specified, required arguments

Parameters:
canonicalForm -
Returns:
Throws:
IllegalArgumentException - If either argument is not specified

ShrinkWrap Resolver Maven API 2.0.0-alpha-3

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