Top Description Constructors Methods
org.glassfish.jaxb.core.util

public Class Which

extends Object
Class Inheritance
Imports
java.net.URL

Finds out where a class file is loaded from.
Author
Kohsuke Kawaguchi ([email protected])

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String
which(Class<?> clazz)

public static String

Returns:

the source location of the resource, or null if it wasn't found
which
(String
the fully qualified name of the class to search for
classname
,
ClassLoader
the classloader to search
loader
)

Search the specified classloader for the given classname.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Whichback to summary
private Which()

Method Detail

whichback to summary
public static String which(Class<?> clazz)
whichback to summary
public static String which(String classname, ClassLoader loader)

Search the specified classloader for the given classname. Then give the return value.

Parameters
classname:String

the fully qualified name of the class to search for

loader:ClassLoader

the classloader to search

Returns:String

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