Class ClassLoadingUtil


  • public class ClassLoadingUtil
    extends Object

    ClassLoadingUtil class.

    Version:
    $Id: $
    Author:
    José Pedro Pereira - Linkare TI
    • Constructor Detail

      • ClassLoadingUtil

        public ClassLoadingUtil()
    • Method Detail

      • loadClass

        public 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 ClassLoader getClassloader()
        Returns the current threads context classloader.
        Returns:
        the current threads context classloader
        See Also:
        Thread.currentThread()