Package org.apache.maven.surefire.booter
Class Classpath
- java.lang.Object
-
- org.apache.maven.surefire.booter.Classpath
-
- All Implemented Interfaces:
java.lang.Cloneable,java.lang.Iterable<java.lang.String>
public final class Classpath extends java.lang.Object implements java.lang.Iterable<java.lang.String>, java.lang.CloneableAn ordered list of classpath elements with set behaviour A Classpath is immutable and thread safe. Immutable and thread safe- Author:
- Kristian Rosenvold
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClasspathaddClassPathElementUrl(java.lang.String path)Classpathclone()java.lang.ClassLoadercreateClassLoader(boolean childDelegation, boolean enableAssertions, java.lang.String roleName)static ClasspathemptyClasspath()booleanequals(java.lang.Object o)java.util.List<java.lang.String>getClassPath()java.lang.StringgetCompactLogMessage(java.lang.String descriptor)java.lang.StringgetLogMessage(java.lang.String descriptor)inthashCode()java.util.Iterator<java.lang.String>iterator()static Classpathjoin(Classpath firstClasspath, Classpath secondClasspath)voidwriteToSystemProperty(java.lang.String propertyName)
-
-
-
Constructor Detail
-
Classpath
public Classpath(@Nonnull Classpath other, @Nonnull java.lang.String additionalElement)
-
Classpath
public Classpath(@Nonnull java.util.Collection<java.lang.String> elements)
-
-
Method Detail
-
emptyClasspath
public static Classpath emptyClasspath()
-
addClassPathElementUrl
public Classpath addClassPathElementUrl(java.lang.String path)
-
getClassPath
@Nonnull public java.util.List<java.lang.String> getClassPath()
-
writeToSystemProperty
public void writeToSystemProperty(@Nonnull java.lang.String propertyName)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
createClassLoader
public java.lang.ClassLoader createClassLoader(boolean childDelegation, boolean enableAssertions, @Nonnull java.lang.String roleName) throws SurefireExecutionException- Throws:
SurefireExecutionException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getLogMessage
public java.lang.String getLogMessage(@Nonnull java.lang.String descriptor)
-
getCompactLogMessage
public java.lang.String getCompactLogMessage(@Nonnull java.lang.String descriptor)
-
iterator
public java.util.Iterator<java.lang.String> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<java.lang.String>
-
clone
public Classpath clone()
- Overrides:
clonein classjava.lang.Object
-
-