|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.germinus.easyconf.ClasspathUtil
Contains util methods to search in the classpath
Constructor Summary | |
ClasspathUtil()
|
Method Summary | |
static java.lang.Class |
locateClass(java.lang.String name)
Return the Class object of the specified class name by searching the current classpath and the system classpath. |
static java.lang.Class[] |
locateClasses(java.lang.String[] classNames)
Return an array of Class objects for each of the class names specified. |
static java.net.URL |
locateResource(java.lang.String name)
Return the location of the specified resource by searching the user home directory, the current classpath and the system classpath. |
static java.net.URL |
locateResource(java.lang.String base,
java.lang.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 java.lang.Class locateClass(java.lang.String name) throws java.lang.ClassNotFoundException
name
- the name of the class
Class
instance
java.lang.ClassNotFoundException
public static java.lang.Class[] locateClasses(java.lang.String[] classNames) throws java.lang.ClassNotFoundException
classNames
- the names of the classes to load
Class[]
array
java.lang.ClassNotFoundException
public static java.net.URL locateResource(java.lang.String base, java.lang.String name)
base
- the base path of the resourcename
- the name of the resource
null
if it has not
been foundpublic static java.net.URL locateResource(java.lang.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 |