|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.loader.ClassEntry
public class ClassEntry
Describes a cached loaded class entry.
| Constructor Summary | |
|---|---|
ClassEntry(DynamicClassLoader loader,
java.lang.String name,
Path sourcePath,
Path classPath,
java.security.CodeSource codeSource)
Create a loaded class entry |
|
ClassEntry(Loader loader,
java.lang.String name,
Path sourcePath,
Path classPath)
Create a loaded class entry |
|
| Method Summary | |
|---|---|
protected boolean |
addDependencies(DependencyContainer container)
Adds the dependencies, returning true if it's adding itself. |
static boolean |
canReloadNative()
|
boolean |
compileIsModified()
Returns true if the compile doesn't avoid the dependency. |
DynamicClassLoader |
getClassLoader()
returns the class loader. |
ClassPackage |
getClassPackage()
|
Path |
getClassPath()
Returns the path to the class file. |
java.security.CodeSource |
getCodeSource()
|
java.lang.Class |
getEntryClass()
|
java.lang.String |
getName()
|
Path |
getSourcePath()
|
static boolean |
hasJNIReload()
|
boolean |
isModified()
Returns true if the source file has been modified. |
void |
load(ByteBuffer buffer)
Loads the contents of the class file into the buffer. |
boolean |
logModified(java.util.logging.Logger log)
Returns true if the source file has been modified. |
boolean |
postLoad()
post-load actions. |
void |
preLoad()
preload actions. |
boolean |
reloadIsModified()
Returns true if the reload doesn't avoid the dependency. |
static int |
reloadNative(java.lang.Class cl,
byte[] bytes,
int offset,
int length)
|
void |
setClassPackage(ClassPackage pkg)
|
protected void |
setDependPath(Path dependPath)
Sets the depend path. |
void |
setEntryClass(java.lang.Class cl)
|
void |
setSourceLastModified(long lastModified)
|
void |
setSourceLength(long length)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassEntry(DynamicClassLoader loader,
java.lang.String name,
Path sourcePath,
Path classPath,
java.security.CodeSource codeSource)
name - the classnamesourcePath - path to the source Java fileclassPath - path to the compiled class file
public ClassEntry(Loader loader,
java.lang.String name,
Path sourcePath,
Path classPath)
name - the classnamesourcePath - path to the source Java fileclassPath - path to the compiled class file| Method Detail |
|---|
public java.lang.String getName()
public DynamicClassLoader getClassLoader()
public java.security.CodeSource getCodeSource()
public Path getSourcePath()
protected void setDependPath(Path dependPath)
protected boolean addDependencies(DependencyContainer container)
public void setSourceLength(long length)
public void setSourceLastModified(long lastModified)
public ClassPackage getClassPackage()
public void setClassPackage(ClassPackage pkg)
public boolean isModified()
isModified in interface Dependencypublic boolean logModified(java.util.logging.Logger log)
logModified in interface Dependencypublic boolean compileIsModified()
public boolean reloadIsModified()
public Path getClassPath()
public java.lang.Class getEntryClass()
public void setEntryClass(java.lang.Class cl)
public void preLoad()
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public void load(ByteBuffer buffer)
throws java.io.IOException
java.io.IOExceptionpublic boolean postLoad()
public static boolean hasJNIReload()
public java.lang.String toString()
toString in class java.lang.Objectpublic static boolean canReloadNative()
public static int reloadNative(java.lang.Class cl,
byte[] bytes,
int offset,
int length)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||