public class ClassCache extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassCache.ClassCacheLocator
Locator using the cache.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void addPreserveClass(String name)
name - fully-qualified class namepublic static boolean isPreserveClass(String name)
name - fully-qualified class nametrue if to be preserved, false if notpublic static ClassFile getClassFile(String name) throws org.jibx.runtime.JiBXException
name - fully-qualified name of class to be foundnull if class not foundorg.jibx.runtime.JiBXException - on any error accessing class filepublic static ClassFile requireClassFile(String name) throws org.jibx.runtime.JiBXException
name - fully-qualified name of class to be foundnull if class not foundorg.jibx.runtime.JiBXException - on any error accessing class filepublic static boolean hasClassFile(String name)
name - full-qualified name of class to be checkedtrue if foundpublic static File getModifiablePath()
null if nonepublic static void setPaths(String[] paths)
paths - ordered set of paths to be searched for class filesCopyright © 2005–2016 jibx.org. All rights reserved.