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
 IClass getClassInfo(java.lang.String name)
          Get class information.
 IClass getRequiredClassInfo(java.lang.String name)
          Get required class information.
 boolean isLookupSupported()
          Check if class lookup is supported.
 java.lang.Class loadClass(java.lang.String name)
          Load class.
 

Method Detail

isLookupSupported

boolean isLookupSupported()
Check if class lookup is supported. If this returns false, lookup methods return only place holder class information.

Returns:
true if class lookup supported, false if 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 null if class not found

getRequiredClassInfo

IClass getRequiredClassInfo(java.lang.String name)
Get required class information. This is just like getClassInfo(String), but throws a runtime exception rather than returning null.

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 null if not found


Project Web Site