public class ResourceFinderIClassLoader extends IClassLoader
Constructor and Description |
---|
ResourceFinderIClassLoader(ResourceFinder resourceFinder,
IClassLoader optionalParentIClassLoader) |
Modifier and Type | Method and Description |
---|---|
protected IClass |
findIClass(String descriptor)
|
createJavacLikePathIClassLoader, defineIClass, loadIClass, postConstruct
public ResourceFinderIClassLoader(ResourceFinder resourceFinder, IClassLoader optionalParentIClassLoader)
protected IClass findIClass(String descriptor) throws ClassNotFoundException
IClassLoader
IClass
by descriptor; return null
if a class
for that descriptor
could not be found.
Similar ClassLoader.findClass(java.lang.String)
, this method
must
IClass
object from somewhere for the given type
IClassLoader.defineIClass(IClass)
with that IClass
object as
the argument
IClass
object
The format of a descriptor
is defined in JVMS 4.3.2. Typical
descriptors are:
I
(Integer)
Lpkg1/pkg2/Cls;
(Class declared in package)
Lpkg1/pkg2/Outer$Inner;
Member class
Notice that this method is never called from more than one thread at a time. In other words, implementations of this method need not be synchronized.
findIClass
in class IClassLoader
null
if a class with that descriptor could not be foundClassNotFoundException
- if an exception was raised while loading the classCopyright © 2001–2016. All rights reserved.