Class ClassTools


  • public class ClassTools
    extends java.lang.Object
    Utility methods for manipulating class objects and resources.
    Since:
    1.4
    Author:
    Thomas Down
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.ClassLoader getClassLoader​(java.lang.Class clazz)
      Get the classloader which loaded clazz.
      static java.lang.ClassLoader getClassLoader​(java.lang.Object obj)
      Get the classloader which loaded the class of obj.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getClassLoader

        public static java.lang.ClassLoader getClassLoader​(java.lang.Object obj)
        Get the classloader which loaded the class of obj.
      • getClassLoader

        public static java.lang.ClassLoader getClassLoader​(java.lang.Class clazz)
        Get the classloader which loaded clazz. This is a "safe" method which handles null classloaders and returns the system classloader instead.