com.caucho.util
Class DynamicClassLoader.Entry

java.lang.Object
  |
  +--com.caucho.util.DynamicClassLoader.Entry
Enclosing class:
DynamicClassLoader

public class DynamicClassLoader.Entry
extends java.lang.Object

Describes a cached loaded class entry.


Constructor Summary
DynamicClassLoader.Entry(java.lang.String name, Path sourcePath, Path classPath)
          Create a loaded class entry
 
Method Summary
 Path getClassPath()
          Returns the path to the class file.
 java.lang.Class getEntryClass()
           
 boolean isModified()
          Returns true if the source file has been modified.
 java.lang.Class loadClass()
          Loads the class from the loader
 void setEntryClass(java.lang.Class cl)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicClassLoader.Entry

public DynamicClassLoader.Entry(java.lang.String name,
                                Path sourcePath,
                                Path classPath)
Create a loaded class entry
Parameters:
name - the classname
sourcePath - path to the source Java file
classPath - path to the compiled class file
Method Detail

isModified

public boolean isModified()
Returns true if the source file has been modified.

getClassPath

public Path getClassPath()
Returns the path to the class file.

loadClass

public java.lang.Class loadClass()
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
Loads the class from the loader

setEntryClass

public void setEntryClass(java.lang.Class cl)

getEntryClass

public java.lang.Class getEntryClass()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object