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 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 IClass
getClassInfo(String name)
Get class information.IClass
getRequiredClassInfo(String name)
Get required class information.boolean
isLookupSupported()
Check if class lookup is supported.Class
loadClass(String name)
Load class.
-
-
-
Method Detail
-
isLookupSupported
public boolean isLookupSupported()
Description copied from interface:IClassLocator
Check if class lookup is supported. If this returnsfalse
, lookup methods return only place holder class information.- Specified by:
isLookupSupported
in interfaceIClassLocator
- Returns:
true
if class lookup supported,false
if only place holder information returned
-
getClassInfo
public IClass getClassInfo(String name)
Description copied from interface:IClassLocator
Get class information.- Specified by:
getClassInfo
in interfaceIClassLocator
- Parameters:
name
- fully-qualified name of class to be found- Returns:
- class information, or
null
if class not found
-
getRequiredClassInfo
public IClass getRequiredClassInfo(String name)
Description copied from interface:IClassLocator
Get required class information. This is just likeIClassLocator.getClassInfo(String)
, but throws a runtime exception rather than returningnull
.- Specified by:
getRequiredClassInfo
in interfaceIClassLocator
- Parameters:
name
- fully-qualified name of class to be found- Returns:
- class information (non-
null
)
-
loadClass
public Class loadClass(String name)
Description copied from interface:IClassLocator
Load class.- Specified by:
loadClass
in interfaceIClassLocator
- Parameters:
name
- fully-qualified class name- Returns:
- loaded class, or
null
if not found
-
-