Class ClassLoaderHelper


  • public class ClassLoaderHelper
    extends Object
    Utility method for classloaders.
    • Field Detail

      • findLoadedClass

        public static Method findLoadedClass
    • Constructor Detail

      • ClassLoaderHelper

        public ClassLoaderHelper()
    • Method Detail

      • isClassLoaded

        public static boolean isClassLoaded​(ClassLoader classLoader,
                                            String className)
        Check if the class was already loaded by the classloader. It does not try to load the class (opposite to Class.forName()).
        Parameters:
        classLoader - classLoader to check
        className - fully qualified class name
        Returns:
        true if the class was loaded
      • isClassLoderStarted

        public static boolean isClassLoderStarted​(ClassLoader classLoader)
        Some class loader has activity state. e.g. WebappClassLoader must be started before it can be used
        Parameters:
        classLoader - the class loader
        Returns:
        true, if is class loader active