Class ClassLoadingUtil


  • public class ClassLoadingUtil
    extends Object

    ClassLoadingUtil class.

    • Method Detail

      • loadClass

        public static Class<?> loadClass​(String className)
                                  throws ClassNotFoundException
        Loads the class by class name with the current threads context classloader. If there occurs an exception the class will be loaded by default classloader.
        Parameters:
        className - a String object.
        Returns:
        a Class object.
        Throws:
        ClassNotFoundException - if any.
      • getClassloader

        public static ClassLoader getClassloader()
        Returns the current threads context classloader.
        Returns:
        the current threads context classloader
        See Also:
        Thread.currentThread()