public class ConsoleClassLoader extends ClassLoader
This ClassLoader makes it possible to access plugin
resources by finding the appropriate plugin module's
ClassLoader and loading resources from it.
| Modifier and Type | Field and Description |
|---|---|
static String |
HABITAT_ATTRIBUTE |
| Modifier | Constructor and Description |
|---|---|
protected |
ConsoleClassLoader()
This constructor should not normally be used.
|
|
ConsoleClassLoader(ClassLoader parent)
This constructor creates an instance of this
ClassLoader and will use the given
ClassLoader as its parent ClassLoader. |
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
findModuleClassLoader(String moduleName)
This method find the
ClassLoader associated with the
named module. |
URL |
findResource(String name)
In order for this method to find the Resource...
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static final String HABITAT_ATTRIBUTE
protected ConsoleClassLoader()
This constructor should not normally be used. You should use
the one that allows you to provide the parent
ClassLoader.
public ConsoleClassLoader(ClassLoader parent)
This constructor creates an instance of this
ClassLoader and will use the given
ClassLoader as its parent ClassLoader.
parent - The parent ClassLoaderpublic URL findResource(String name)
In order for this method to find the Resource...
findResource in class ClassLoaderpublic static ClassLoader findModuleClassLoader(String moduleName)
This method find the ClassLoader associated with the
named module.
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.