Package org.glassfish.rmic.iiop
Class DirectoryLoader
java.lang.Object
java.lang.ClassLoader
org.glassfish.rmic.iiop.DirectoryLoader
DirectoryLoader is a simple ClassLoader which loads from a specified
file system directory.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
getClassFileData
(String className) Reurn a byte array containing the contents of the class file.Class
<?> Convenience version of loadClass which sets 'resolve' == true.Class
<?> This is the required version of loadClass which is called both from loadClass above and from the internal function FindClassFromClass.Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Field Details
-
cache
-
root
-
-
Constructor Details
-
DirectoryLoader
Constructor. -
DirectoryLoader
private DirectoryLoader()
-
-
Method Details
-
loadClass
Convenience version of loadClass which sets 'resolve' == true.- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
loadClass
This is the required version of loadClass which is called both from loadClass above and from the internal function FindClassFromClass.- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
getClassFileData
Reurn a byte array containing the contents of the class file. Returns null if an exception occurs.
-