java.lang.Object | |
↳ | com.atlassian.confluence.util.ClasspathUtils |
Classpath discovery utilities
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the classpath searched for by a particular classloader (only supports URLClassLoaders presently)
| |||||||||||
Get a list of class files in the JAR specified by a URL.
| |||||||||||
Gets a list of JARs from the thread context classloader, and returns a ClasspathClasses object with the class file names and
the JARs which they appear in.
| |||||||||||
Gets a list of JARs from the thread context classloader, and returns a ClasspathClasses object with the class file names and
the JARs which they appear in.
| |||||||||||
This method will return an array of URLs used by the system classloader.
| |||||||||||
Get a list of classloaders in the thread context classloader hierarchy
| |||||||||||
This method will return an array of URLs used by the thread context classloader.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Get the classpath searched for by a particular classloader (only supports URLClassLoaders presently)
classloader | to examine |
---|
Get a list of class files in the JAR specified by a URL.
jarUrl | the URL of a JAR on the classpath, such as one of the items in the list returned by
getClassLoaderClasspath(ClassLoader) |
---|
Gets a list of JARs from the thread context classloader, and returns a ClasspathClasses object with the class file names and the JARs which they appear in. Useful for finding duplicate classes in the classpath.
Gets a list of JARs from the thread context classloader, and returns a ClasspathClasses object with the class file names and the JARs which they appear in. Useful for finding duplicate classes in the classpath.
This method will return an array of URLs used by the system classloader. If the system classloader is not an instance of URLClassLoader, this method will return null
Get a list of classloaders in the thread context classloader hierarchy
This method will return an array of URLs used by the thread context classloader. This method will search the classloader hierarchy for all classloaders of class URLClassLoader and return all URLs searched by these classloaders in order of discovery. If no such classloaders are found this method will return null