istack common utility code 2.6.1-redhat-2

com.sun.istack.test
Class Which

java.lang.Object
  extended by com.sun.istack.test.Which

public class Which
extends Object

Finds out where a class file is loaded from.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Constructor Summary
Which()
           
 
Method Summary
static String which(Class clazz)
           
static String which(String classname, ClassLoader loader)
          Search the specified classloader for the given classname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Which

public Which()
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

istack common utility code 2.6.1-redhat-2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.