|
TrueZIP 6.8.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.util.ClassLoaders
public class ClassLoaders
Provides static utility methods for convenient class and resource loading which is designed to work in both JEE and OSGi environments. You cannot instantiate this class.
| Constructor Summary | |
|---|---|
ClassLoaders()
Deprecated. |
|
| Method Summary | |
|---|---|
static Enumeration |
getResources(String name,
Class loadingClass)
Deprecated. Concatenates the enumeration of the resource name on the class
path by using the class loader of the class loadingClass and the
current thread's context class loader or, if not available, the system
class loader. |
static Class |
loadClass(String classToLoad,
Class loadingClass)
Deprecated. Tries to load the class classToLoad using the class loader of
the class loadingClass first or, failing that, using the
current thread's context class loader or, if not available, the system
class loader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ClassLoaders()
| Method Detail |
|---|
public static Class loadClass(String classToLoad,
Class loadingClass)
throws ClassNotFoundException
classToLoad using the class loader of
the class loadingClass first or, failing that, using the
current thread's context class loader or, if not available, the system
class loader.
classToLoad - The class to load.loadingClass - The class which wants to load classToLoad.
ClassNotFoundException - If loading the class failed for some
reason.
public static Enumeration getResources(String name,
Class loadingClass)
throws IOException
name on the class
path by using the class loader of the class loadingClass and the
current thread's context class loader or, if not available, the system
class loader.
name - The resource to enumerate.loadingClass - The class which wants to enumerate name.
name on the class
path.
IOException - If I/O errors occur.
|
TrueZIP 6.8.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||