Package org.jibx.util
Interface IClassLocator
-
- All Known Subinterfaces:
IClassSourceLocator
- All Known Implementing Classes:
ClassCache.ClassCacheLocator,ClassSourceLocator,DummyClassLocator
public interface IClassLocatorLocator for class information. Looks up classes using whatever method is appropriate for the usage environment.- Author:
- Dennis M. Sosnoski
-
-
Method Summary
All Methods Instance Methods Abstract 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
boolean isLookupSupported()
Check if class lookup is supported. If this returnsfalse, lookup methods return only place holder class information.- Returns:
trueif class lookup supported,falseif only place holder information returned
-
getClassInfo
IClass getClassInfo(java.lang.String name)
Get class information.- Parameters:
name- fully-qualified name of class to be found- Returns:
- class information, or
nullif class not found
-
getRequiredClassInfo
IClass getRequiredClassInfo(java.lang.String name)
Get required class information. This is just likegetClassInfo(String), but throws a runtime exception rather than returningnull.- Parameters:
name- fully-qualified name of class to be found- Returns:
- class information (non-
null)
-
loadClass
java.lang.Class loadClass(java.lang.String name)
Load class.- Parameters:
name- fully-qualified class name- Returns:
- loaded class, or
nullif not found
-
-