Rio Project 4.2 API Documentation



org.rioproject.resolver.maven2
Class SimpleResolver

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

public class SimpleResolver
extends Object
implements Resolver, groovy.lang.GroovyObject


Constructor Summary
SimpleResolver()
           
 
Method Summary
protected  groovy.lang.MetaClass $getStaticMetaClass()
           
protected  String[] doResolve(String s, File pom, boolean download)
           
 String[] getClassPathFor(String s, 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 aType, File pomFile)
          Get the location of the artifact
static Logger getLogger()
           
 Settings getM2settings()
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Collection<RemoteRepository> getRemoteRepositories()
          Get the @{link RemoteRepository} instances the Resolver is using
 List<RemoteRepository> getRepositories()
           
 Object invokeMethod(String method, Object arguments)
           
static void main(String[] args)
           
static void setLogger(Logger value)
           
 void setM2settings(Settings value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 void setRepositories(List<RemoteRepository> value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleResolver

public SimpleResolver()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

getLogger

public static Logger getLogger()

setLogger

public static void setLogger(Logger value)

getM2settings

public Settings getM2settings()

setM2settings

public void setM2settings(Settings value)

getRepositories

public List<RemoteRepository> getRepositories()

setRepositories

public void setRepositories(List<RemoteRepository> value)

main

public static void main(String[] args)

getRemoteRepositories

public Collection<RemoteRepository> getRemoteRepositories()
Description copied from interface: Resolver
Get the @{link RemoteRepository} instances the Resolver is using

Specified by:
getRemoteRepositories in interface Resolver
Returns:
The @{link RemoteRepository} instances the Resolver is using. If there are no instances, return an empty collection.

getLocation

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

Specified by:
getLocation in interface Resolver
Parameters:
a - The artifact string.
aType - 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.
pomFile - 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
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 s,
                                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
Parameters:
s - 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

doResolve

protected String[] doResolve(String s,
                             File pom,
                             boolean download)

getDependencyFilter

protected DependencyFilter getDependencyFilter(Artifact a)

toString

public String toString()
Overrides:
toString in class Object

$getStaticMetaClass

protected groovy.lang.MetaClass $getStaticMetaClass()

Copyright © Rio Project.

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