org.biojava.utils
Class ClassTools

java.lang.Object
  extended by org.biojava.utils.ClassTools

public class ClassTools
extends java.lang.Object

Utility methods for manipulating class objects and resources.

Since:
1.4
Author:
Thomas Down

Method Summary
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.