public class JavaConfigurationClassLoader
extends java.lang.ClassLoader
This implementation of ClassLoader is tied to a particular directory and is meant load classes that do not specify a package.
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| Constructor and Description | 
|---|
| JavaConfigurationClassLoader(VirtualFile pClassDir)Constructs a new JavaConfigurationClassLoader | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getClassModificationTime(java.lang.String pName)If the specified class was loaded by this ClassLoader, this
 returns the last modified time of the class file at the time the
 class was loaded. | 
| boolean | isClassLoaded(java.lang.String pName)Returns true if the specified class has already been loaded from
 the directory, false if not. | 
| protected java.lang.Class | loadClass(java.lang.String pName,
         boolean pResolve)Loads the class by first checking the cache, then if the object
 doesn't have a package, this checks the directory, then passes
 the call to the embedded loader. | 
| static byte[] | readFileBytes(VirtualFile pFile)Reads the contents of the specified file into a byte array. | 
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic JavaConfigurationClassLoader(VirtualFile pClassDir)
public boolean isClassLoaded(java.lang.String pName)
public long getClassModificationTime(java.lang.String pName)
protected java.lang.Class loadClass(java.lang.String pName,
                        boolean pResolve)
                             throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundException - if named class was not foundpublic static byte[] readFileBytes(VirtualFile pFile) throws java.io.IOException
pFile - the input filejava.io.IOException - if an error occurred opening or reading the file.