|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cantina.util.Loader
This class is a helper to get resources under classpath
Constructor Summary | |
Loader()
|
Method Summary | |
static java.lang.Class |
getClass(java.lang.String name)
|
static java.net.URL |
getResource(java.lang.String resource)
This method will search for resource in different
places. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Loader()
Method Detail |
public static java.net.URL getResource(java.lang.String resource)
resource
in different
places. The rearch order is as follows:
resource
using the thread context
class loader under Java2. If that fails, search for
resource
using the class loader that loaded this
class (Loader
). Under JDK 1.1, only the the class
loader that loaded this class (Loader
) is used.
ClassLoader.getSystemResource(resource)
, that is is
using the system class loader in JDK 1.2 and virtual machine's
built-in class loader in JDK 1.1.
public static java.lang.Class getClass(java.lang.String name) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |