java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.reflect.ClasspathCollector |
Collect classpaths and build a ClassLoader object using those paths.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ClasspathCollector() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
add(String paths)
Add a path or series of paths to the collection of classpath entries recorded by this object.
| ||||||||||
boolean |
addFromJar(File file)
Add a JAR file (as well as additional in-manifest located entries) to the collection of
classpath entries recorded by this object.
| ||||||||||
void |
addSmart(File dir, String cplist)
Add a series of comma-separated entries to the collection of classpath entries recorded by
this object.
| ||||||||||
URLClassLoader |
createClassloader()
Create a classloader whose parent is the current classloader and whose classpath consists of
all classpaths collected by this object
| ||||||||||
URLClassLoader |
getClassloader(ClassLoader parentCl)
Retrieve or create a classloader holding the classpaths stored by this object.
| ||||||||||
List<URL> | getUrls() | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Add a path or series of paths to the collection of classpath entries recorded by this object.
paths | single or multiple paths. In the case of multiple paths, the paths must be separated by the system separator, that is ':' on Unix systems, and ';' on Windows systems |
---|
Add a JAR file (as well as additional in-manifest located entries) to the collection of classpath entries recorded by this object.
Add a series of comma-separated entries to the collection of classpath entries recorded by this object. The entries may point to folders or JAR files.
Create a classloader whose parent is the current classloader and whose classpath consists of all classpaths collected by this object
Retrieve or create a classloader holding the classpaths stored by this object.
parentCl | optional |
---|