Package org.jibx.util

Interface IClassLocator

  • All Known Implementing Classes:
    ClassCache.ClassCacheLocator, 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 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​(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​(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

        Class loadClass​(String name)
        Load class.
        Parameters:
        name - fully-qualified class name
        Returns:
        loaded class, or null if not found