|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.api.util.ClassLoaderUtils
public final class ClassLoaderUtils
Provides common utility methods for dealing with Classloaders.
Method Summary | ||
---|---|---|
static Class<?> |
getClass(String className)
|
|
static
|
getClass(String className,
Class<T> type)
|
|
static ClassLoader |
getDefaultClassLoader()
Returns the default class loader within the current context. |
|
static Class[] |
getInterfacesToProxy(Object object,
ClassLoader proxyClassLoader,
String[] packageNamesToFilter)
Determines the interfaces which need to be proxied and are visible to the given proxy ClassLoader. |
|
static boolean |
isClassVisible(ClassLoader classLoader,
Class<?> classToCheck)
Checks if the given Class is visible to the given ClassLoader. |
|
static boolean |
isInstanceOf(Object object,
Class<?> instanceClass)
Checks if the given object is an instance of the given class, unwrapping any proxies if necessary to get to the underlying object. |
|
static Object |
unwrapFromProxy(Object proxy)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ClassLoader getDefaultClassLoader()
public static boolean isInstanceOf(Object object, Class<?> instanceClass)
public static Object unwrapFromProxy(Object proxy)
public static boolean isClassVisible(ClassLoader classLoader, Class<?> classToCheck)
public static Class[] getInterfacesToProxy(Object object, ClassLoader proxyClassLoader, String[] packageNamesToFilter)
public static Class<?> getClass(String className)
public static <T> Class<? extends T> getClass(String className, Class<T> type) throws ClassNotFoundException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |