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.boolean
Check if class lookup is supported.Load class.
-
Constructor Details
-
ClassCacheLocator
public ClassCacheLocator()
-
-
Method Details
-
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
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
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
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
-