Package org.glassfish.rmic.iiop
Class ClassPathLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- org.glassfish.rmic.iiop.ClassPathLoader
-
public class ClassPathLoader extends java.lang.ClassLoader
A ClassLoader that will ultimately use a given org.glassfish.rmic.tools.java.ClassPath to find the desired file. This works for any JAR files specified in the given ClassPath as well -- reusing all of that wonderful org.glassfish.rmic.tools.java code.
-
-
Constructor Summary
Constructors Constructor Description ClassPathLoader(ClassPath classPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class
findClass(java.lang.String name)
private byte[]
loadClassData(java.lang.String className)
Load the class with the given fully qualified name from the ClassPath.-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Field Detail
-
classPath
private ClassPath classPath
-
-
Constructor Detail
-
ClassPathLoader
public ClassPathLoader(ClassPath classPath)
-
-
Method Detail
-
findClass
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
- Overrides:
findClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
loadClassData
private byte[] loadClassData(java.lang.String className) throws java.lang.ClassNotFoundException
Load the class with the given fully qualified name from the ClassPath.- Throws:
java.lang.ClassNotFoundException
-
-