Class ClassCache.ClassCacheLocator

  • All Implemented Interfaces:
    IClassLocator
    Enclosing class:
    ClassCache

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

      • ClassCacheLocator

        public ClassCacheLocator()
    • Method Detail

      • 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​(java.lang.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​(java.lang.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 java.lang.Class loadClass​(java.lang.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