|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.util.ClassLoaderUtils
public class ClassLoaderUtils
Provides common utility methods for dealing with Classloaders.
Field Summary | |
---|---|
private static org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
ClassLoaderUtils()
|
Method Summary | |
---|---|
static Class |
getClass(String className)
|
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)
|
private static Object |
unwrapFromProxyOnce(Object proxy)
Unwraps the underlying object from the given proxy (which may itself be a proxy). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public ClassLoaderUtils()
Method Detail |
---|
public static ClassLoader getDefaultClassLoader()
public static boolean isInstanceOf(Object object, Class instanceClass)
public static Object unwrapFromProxy(Object proxy)
private static Object unwrapFromProxyOnce(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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |