com.sun.xml.bind.util

Class Which

public class Which extends Object

Finds out where a class file is loaded from.
Method Summary
static Stringwhich(Class clazz)
static Stringwhich(String classname, ClassLoader loader)
Search the specified classloader for the given classname.

Method Detail

which

public static String which(Class clazz)

which

public static String which(String classname, ClassLoader loader)
Search the specified classloader for the given classname.

Parameters: classname the fully qualified name of the class to search for loader the classloader to search

Returns: the source location of the resource, or null if it wasn't found