Rio Project 4.2 API Documentation



org.rioproject.test
Class ProjectModuleResolver

java.lang.Object
  extended by org.rioproject.resolver.maven2.SimpleResolver
      extended by org.rioproject.test.ProjectModuleResolver
All Implemented Interfaces:
groovy.lang.GroovyObject, Resolver

public class ProjectModuleResolver
extends SimpleResolver


Constructor Summary
ProjectModuleResolver()
           
 
Method Summary
protected  groovy.lang.MetaClass $getStaticMetaClass()
           
 String[] getClassPathFor(String a, File pom, boolean download)
          Get the classpath for an artifact, and resolve (download) the artifact and it's dependencies if needed.
 String[] getClassPathFor(String s, RemoteRepository[] remote, boolean download)
          Get the classpath for an artifact, and resolve (download) the artifact and it's dependencies if needed.
protected  DependencyFilter getDependencyFilter(Artifact a)
           
 URL getLocation(String a, String type, File pom)
          Get the location of the artifact
 
Methods inherited from class org.rioproject.resolver.maven2.SimpleResolver
doResolve, getLogger, getM2settings, getMetaClass, getProperty, getRemoteRepositories, getRepositories, invokeMethod, main, setLogger, setM2settings, setMetaClass, setProperty, setRepositories, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectModuleResolver

public ProjectModuleResolver()
Method Detail

getLocation

public URL getLocation(String a,
                       String type,
                       File pom)
Description copied from interface: Resolver
Get the location of the artifact

Specified by:
getLocation in interface Resolver
Overrides:
getLocation in class SimpleResolver
Parameters:
a - The artifact string.
type - The type of artifact. Typically either "jar" or "oar". If null (or empty string), "jar" is used. This is used to determine the filename extension of the artifact to locate.
pom - The artifact pom
Returns:
The location of the artifact, or null if not found.

getClassPathFor

public String[] getClassPathFor(String s,
                                RemoteRepository[] remote,
                                boolean download)
Description copied from interface: Resolver
Get the classpath for an artifact, and resolve (download) the artifact and it's dependencies if needed.

Specified by:
getClassPathFor in interface Resolver
Overrides:
getClassPathFor in class SimpleResolver
Parameters:
s - The artifact string.
remote - Array of repositories to use to resolve the artifact
download - If true, download and install the resolved elements
Returns:
A string array containing the classpath elements for the artifact

getClassPathFor

public String[] getClassPathFor(String a,
                                File pom,
                                boolean download)
Description copied from interface: Resolver
Get the classpath for an artifact, and resolve (download) the artifact and it's dependencies if needed.

Specified by:
getClassPathFor in interface Resolver
Overrides:
getClassPathFor in class SimpleResolver
Parameters:
a - The artifact string.
pom - The artifact pom
download - If true, download and install the resolved elements
Returns:
A string array containing the classpath elements for the artifact

getDependencyFilter

protected DependencyFilter getDependencyFilter(Artifact a)
Overrides:
getDependencyFilter in class SimpleResolver

$getStaticMetaClass

protected groovy.lang.MetaClass $getStaticMetaClass()
Overrides:
$getStaticMetaClass in class SimpleResolver

Copyright © Rio Project.

Copyright © 2006-2011 Rio Project. All Rights Reserved.