Package org.jibx.binding.classes
Class ClassCache.ClassCacheLocator
java.lang.Object
org.jibx.binding.classes.ClassCache.ClassCacheLocator
- All Implemented Interfaces:
IClassLocator
- Enclosing class:
ClassCache
Locator using the cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassInfo(String name) Get class information.getRequiredClassInfo(String name) Get required class information.booleanCheck if class lookup is supported.Load class.
-
Constructor Details
-
ClassCacheLocator
public ClassCacheLocator()
-
-
Method Details
-
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
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
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
Description copied from interface:IClassLocatorLoad class.- Specified by:
loadClassin interfaceIClassLocator- Parameters:
name- fully-qualified class name- Returns:
- loaded class, or
nullif not found
-