public interface JavaClassLoader
Represents an internal ClassLoader structure within a Java VM instance.
For most ClassLoaders there is a corresponding java.lang.ClassLoader
object within with JavaRuntime. For primordial class loaders such as
the bootstrap class loader, there may or may not be a corresponding
java.lang.ClassLoader instance.
Since Java does not define any strict inheritance structure between
class loaders, there are no APIs for inspecting 'child' or 'parent'
class loaders. This information may be inferred by inspecting the
corresponding java.lang.ClassLoader instance.
ClassLoader| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares the argument to the receiver, and answers true
if they represent the same object using a class
specific comparison.
|
JavaClass |
findClass(String name)
Find a named class within this class loader.
|
Iterator |
getCachedClasses()
When a ClassLoader successfully delegates a findClass() request to
another ClassLoader, the result of the delegation must be cached within
the internal structure so that the VM does not make repeated requests
for the same class.
|
Iterator |
getDefinedClasses()
Get the set of classes which are defined in this JavaClassLoader.
|
JavaObject |
getObject()
Get the java.lang.ClassLoader instance associated with this class loader.
|
int |
hashCode()
Answers an integer hash code for the receiver.
|
Iterator getDefinedClasses()
JavaClass,
CorruptDataIterator getCachedClasses()
JavaClass,
CorruptDataJavaClass findClass(String name) throws CorruptDataException
name - of the class to find. Packages should be separated by
'/' instead of '.'CorruptDataExceptionJavaObject getObject() throws CorruptDataException
CorruptDataExceptionJavaObject,
ClassLoaderboolean equals(Object obj)
java.lang.Objectequals in class Objectobj - Object.hashCode()int hashCode()
java.lang.Objecttrue when passed to
.equals must answer the same value for this
method.hashCode in class ObjectObject.equals(java.lang.Object)Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2004, 2025 IBM Corp. and others.