|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.user.homelibrary.util.config.easyconf.ClasspathUtil
public class ClasspathUtil
Contains util methods to search in the classpath
| Constructor Summary | |
|---|---|
ClasspathUtil()
|
|
| Method Summary | |
|---|---|
static Class |
locateClass(String name)
Return the Class object of the specified class name by searching the current classpath and the system classpath. |
static Class[] |
locateClasses(String[] classNames)
Return an array of Class objects for each of the class names specified. |
static URL |
locateResource(String name)
Return the location of the specified resource by searching the user home directory, the current classpath and the system classpath. |
static URL |
locateResource(String base,
String name)
Return the location of the specified resource by searching the user home directory, the current classpath and the system classpath. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClasspathUtil()
| Method Detail |
|---|
public static Class locateClass(String name)
throws ClassNotFoundException
name - the name of the class
Class instance
ClassNotFoundException
public static Class[] locateClasses(String[] classNames)
throws ClassNotFoundException
classNames - the names of the classes to load
Class[] array
ClassNotFoundException
public static URL locateResource(String base,
String name)
base - the base path of the resourcename - the name of the resource
null if it has not
been foundpublic static URL locateResource(String name)
name - the name of the resource
null if it has not
been found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||