org.apache.maven.surefire.booter
Class Classpath

java.lang.Object
  extended by org.apache.maven.surefire.booter.Classpath
All Implemented Interfaces:
Iterable<String>

public class Classpath
extends Object
implements Iterable<String>

An ordered list of classpath elements with set behaviour A Classpath is immutable and thread safe. Immutable and thread safe

Author:
Kristian Rosenvold

Constructor Summary
Classpath(Classpath other, String additionalElement)
           
Classpath(Iterable<String> elements)
           
 
Method Summary
 Classpath addClassPathElementUrl(String path)
           
 ClassLoader createClassLoader(ClassLoader parent, boolean childDelegation, boolean enableAssertions, String roleName)
           
static Classpath emptyClasspath()
           
 boolean equals(Object o)
           
 List<URL> getAsUrlList()
           
 List<String> getClassPath()
           
 String getCompactLogMessage(String descriptor)
           
 String getLogMessage(String descriptor)
           
 int hashCode()
           
 Iterator<String> iterator()
           
static Classpath join(Classpath firstClasspath, Classpath secondClasspath)
           
 void writeToSystemProperty(String propertyName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Classpath

public Classpath(Classpath other,
                 String additionalElement)

Classpath

public Classpath(Iterable<String> elements)
Method Detail

join

public static Classpath join(Classpath firstClasspath,
                             Classpath secondClasspath)

emptyClasspath

public static Classpath emptyClasspath()

addClassPathElementUrl

public Classpath addClassPathElementUrl(String path)

getClassPath

public List<String> getClassPath()

getAsUrlList

public List<URL> getAsUrlList()
                       throws MalformedURLException
Throws:
MalformedURLException

writeToSystemProperty

public void writeToSystemProperty(String propertyName)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

createClassLoader

public ClassLoader createClassLoader(ClassLoader parent,
                                     boolean childDelegation,
                                     boolean enableAssertions,
                                     String roleName)
                              throws SurefireExecutionException
Throws:
SurefireExecutionException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getLogMessage

public String getLogMessage(String descriptor)

getCompactLogMessage

public String getCompactLogMessage(String descriptor)

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.