|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.classes.ClassCache
public class ClassCache
Cache for class files being modified. Handles loading and saving of class files. Classes are loaded directly from the file system paths supplied on initialization in preference to the system class path.
| Nested Class Summary | |
|---|---|
static class |
ClassCache.ClassCacheLocator
Locator using the cache. |
| Method Summary | |
|---|---|
static void |
addPreserveClass(String name)
Add class name to set to be preserved without modification. |
static ClassFile |
getClassFile(String name)
Get class information. |
static File |
getModifiablePath()
Return the first modifiable directory path from the classpath in use. |
static boolean |
hasClassFile(String name)
Check if class information has been loaded. |
static boolean |
isPreserveClass(String name)
Check if a class is to be preserved without modification. |
static ClassFile |
requireClassFile(String name)
Get required class information. |
static void |
setPaths(String[] paths)
Set class paths to be searched. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addPreserveClass(String name)
name - fully-qualified class namepublic static boolean isPreserveClass(String name)
name - fully-qualified class name
true if to be preserved, false if not
public static ClassFile getClassFile(String name)
throws JiBXException
name - fully-qualified name of class to be found
null if class not found
JiBXException - on any error accessing class file
public static ClassFile requireClassFile(String name)
throws JiBXException
name - fully-qualified name of class to be found
null if class not found
JiBXException - on any error accessing class filepublic static boolean hasClassFile(String name)
name - full-qualified name of class to be checked
true if foundpublic static File getModifiablePath()
null if nonepublic static void setPaths(String[] paths)
paths - ordered set of paths to be searched for class files
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||