|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.oscache.util.ClassLoaderUtil
public class ClassLoaderUtil
This code is borrowed directly from OSCore, but is duplicated here to avoid having to add a dependency on the entire OSCore jar.
If much more code from OSCore is needed then it might be wiser to bite the bullet and add a dependency.
Method Summary | |
---|---|
static Class |
loadClass(String className,
Class callingClass)
Load a class with a given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Class loadClass(String className, Class callingClass) throws ClassNotFoundException
className
- The name of the class to loadcallingClass
- The Class object of the calling object
ClassNotFoundException
- If the class cannot be found anywhere.
|
OSCache Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |