Class ClassCache.ClassCacheLocator

java.lang.Object
org.jibx.binding.classes.ClassCache.ClassCacheLocator
All Implemented Interfaces:
IClassLocator
Enclosing class:
ClassCache

public static class ClassCache.ClassCacheLocator extends Object implements IClassLocator
Locator using the cache.
  • Constructor Details

    • ClassCacheLocator

      public ClassCacheLocator()
  • Method Details

    • isLookupSupported

      public boolean isLookupSupported()
      Description copied from interface: IClassLocator
      Check if class lookup is supported. If this returns false, lookup methods return only place holder class information.
      Specified by:
      isLookupSupported in interface IClassLocator
      Returns:
      true if class lookup supported, false if only place holder information returned
    • getClassInfo

      public IClass getClassInfo(String name)
      Description copied from interface: IClassLocator
      Get class information.
      Specified by:
      getClassInfo in interface IClassLocator
      Parameters:
      name - fully-qualified name of class to be found
      Returns:
      class information, or null if class not found
    • getRequiredClassInfo

      public IClass getRequiredClassInfo(String name)
      Description copied from interface: IClassLocator
      Get required class information. This is just like IClassLocator.getClassInfo(String), but throws a runtime exception rather than returning null.
      Specified by:
      getRequiredClassInfo in interface IClassLocator
      Parameters:
      name - fully-qualified name of class to be found
      Returns:
      class information (non-null)
    • loadClass

      public Class loadClass(String name)
      Description copied from interface: IClassLocator
      Load class.
      Specified by:
      loadClass in interface IClassLocator
      Parameters:
      name - fully-qualified class name
      Returns:
      loaded class, or null if not found