Package com.sun.xml.bind.util
Class Which
- java.lang.Object
-
- com.sun.xml.bind.util.Which
-
public class Which extends java.lang.ObjectFinds out where a class file is loaded from.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Constructor Summary
Constructors Constructor Description Which()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringwhich(java.lang.Class clazz)static java.lang.Stringwhich(java.lang.String classname, java.lang.ClassLoader loader)Search the specified classloader for the given classname.
-
-
-
Method Detail
-
which
public static java.lang.String which(java.lang.Class clazz)
-
which
public static java.lang.String which(java.lang.String classname, java.lang.ClassLoader loader)Search the specified classloader for the given classname. Then give the return value.- Parameters:
classname- the fully qualified name of the class to search forloader- the classloader to search- Returns:
- the source location of the resource, or null if it wasn't found
-
-