Package org.eclipse.jetty.start
Class Classpath
- java.lang.Object
-
- org.eclipse.jetty.start.Classpath
-
- All Implemented Interfaces:
java.lang.Iterable<java.io.File>
public class Classpath extends java.lang.Object implements java.lang.Iterable<java.io.File>
Class to handle CLASSPATH construction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addClasspath(java.lang.String s)
boolean
addComponent(java.io.File path)
boolean
addComponent(java.lang.String component)
int
count()
void
dump(java.io.PrintStream out)
java.lang.ClassLoader
getClassLoader()
java.util.List<java.io.File>
getElements()
boolean
isEmpty()
java.util.Iterator<java.io.File>
iterator()
void
overlay(Classpath other)
Overlay another classpath, copying its elements into place on this Classpath, while eliminating duplicate entries on the classpath.java.lang.String
toString()
-
-
-
Method Detail
-
addClasspath
public boolean addClasspath(java.lang.String s)
-
addComponent
public boolean addComponent(java.io.File path)
-
addComponent
public boolean addComponent(java.lang.String component)
-
count
public int count()
-
dump
public void dump(java.io.PrintStream out)
-
getClassLoader
public java.lang.ClassLoader getClassLoader()
-
getElements
public java.util.List<java.io.File> getElements()
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<java.io.File> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<java.io.File>
-
overlay
public void overlay(Classpath other)
Overlay another classpath, copying its elements into place on this Classpath, while eliminating duplicate entries on the classpath.- Parameters:
other
- the other classpath to overlay
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-