public class ClassTools extends Object
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
getClassLoader(Class clazz)
Get the classloader which loaded
clazz . |
static ClassLoader |
getClassLoader(Object obj)
Get the classloader which loaded the class of
obj . |
public static ClassLoader getClassLoader(Object obj)
obj
.public static ClassLoader getClassLoader(Class clazz)
clazz
. This is
a "safe" method which handles null
classloaders
and returns the system classloader instead.Copyright © 2014 BioJava. All rights reserved.