Package org.jibx.binding.classes
Class ClassCache.ClassCacheLocator
- java.lang.Object
-
- org.jibx.binding.classes.ClassCache.ClassCacheLocator
-
- All Implemented Interfaces:
IClassLocator
- Enclosing class:
- ClassCache
public static class ClassCache.ClassCacheLocator extends java.lang.Object implements IClassLocator
Locator using the cache.
-
-
Constructor Summary
Constructors Constructor Description ClassCacheLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IClassgetClassInfo(java.lang.String name)Get class information.IClassgetRequiredClassInfo(java.lang.String name)Get required class information.booleanisLookupSupported()Check if class lookup is supported.java.lang.ClassloadClass(java.lang.String name)Load class.
-
-
-
Method Detail
-
isLookupSupported
public boolean isLookupSupported()
Description copied from interface:IClassLocatorCheck if class lookup is supported. If this returnsfalse, lookup methods return only place holder class information.- Specified by:
isLookupSupportedin interfaceIClassLocator- Returns:
trueif class lookup supported,falseif only place holder information returned
-
getClassInfo
public IClass getClassInfo(java.lang.String name)
Description copied from interface:IClassLocatorGet class information.- Specified by:
getClassInfoin interfaceIClassLocator- Parameters:
name- fully-qualified name of class to be found- Returns:
- class information, or
nullif class not found
-
getRequiredClassInfo
public IClass getRequiredClassInfo(java.lang.String name)
Description copied from interface:IClassLocatorGet required class information. This is just likeIClassLocator.getClassInfo(String), but throws a runtime exception rather than returningnull.- Specified by:
getRequiredClassInfoin interfaceIClassLocator- Parameters:
name- fully-qualified name of class to be found- Returns:
- class information (non-
null)
-
loadClass
public java.lang.Class loadClass(java.lang.String name)
Description copied from interface:IClassLocatorLoad class.- Specified by:
loadClassin interfaceIClassLocator- Parameters:
name- fully-qualified class name- Returns:
- loaded class, or
nullif not found
-
-