Package org.jibx.util
Interface IClassLocator
- All Known Subinterfaces:
IClassSourceLocator
- All Known Implementing Classes:
ClassCache.ClassCacheLocator
,ClassSourceLocator
,DummyClassLocator
public interface IClassLocator
Locator for class information. Looks up classes using whatever method is
appropriate for the usage environment.
- Author:
- Dennis M. Sosnoski
-
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.
-
Method Details
-
isLookupSupported
boolean isLookupSupported()Check if class lookup is supported. If this returnsfalse
, lookup methods return only place holder class information.- Returns:
true
if class lookup supported,false
if only place holder information returned
-
getClassInfo
Get class information.- Parameters:
name
- fully-qualified name of class to be found- Returns:
- class information, or
null
if class not found
-
getRequiredClassInfo
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
Load class.- Parameters:
name
- fully-qualified class name- Returns:
- loaded class, or
null
if not found
-