Class 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.
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 class java.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