Class ClassLoaderClassInformationRepository

    • Field Detail

      • classLoader

        private final java.lang.ClassLoader classLoader
    • Constructor Detail

      • ClassLoaderClassInformationRepository

        public ClassLoaderClassInformationRepository​(java.lang.ClassLoader classLoader)
        Parameters:
        classLoader - classloader to extract information from
        Throws:
        java.lang.NullPointerException - if any argument is null
    • Method Detail

      • getInformation

        public ClassInformation getInformation​(java.lang.String internalClassName)
        Description copied from interface: ClassInformationRepository
        Get information for a class.

        This method returns class information as if it were encountered in a class file. In a class file, if the class is an interface, then its superclass is set to Object. Note that this is different from what Class.getSuperclass() returns when the class represents an interface (it returns null).

        Specified by:
        getInformation in interface ClassInformationRepository
        Parameters:
        internalClassName - internal class name
        Returns:
        information for that class, or null if not found