|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powermock.api.support.ClassLoaderUtil
public class ClassLoaderUtil
| Constructor Summary | |
|---|---|
ClassLoaderUtil()
|
|
| Method Summary | ||
|---|---|---|
static
|
hasClass(Class<T> type,
ClassLoader classloader)
Check whether a classloader can load the given class. |
|
static
|
loadClass(Class<T> type,
ClassLoader classloader)
Loads a class with a specific classloader, wraps the ClassNotFoundException in a runtime exeception. |
|
static
|
loadClass(String className)
Loads a class from the current classloader |
|
static
|
loadClass(String className,
ClassLoader classloader)
Load a class from a specific classloader |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderUtil()
| Method Detail |
|---|
public static <T> Class<T> loadClass(Class<T> type,
ClassLoader classloader)
ClassNotFoundException in a runtime exeception.
public static <T> Class<T> loadClass(String className)
public static <T> boolean hasClass(Class<T> type,
ClassLoader classloader)
public static <T> Class<T> loadClass(String className,
ClassLoader classloader)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||