public final class ClassLoaderUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
getClass(String className) |
static <T> Class<? extends T> |
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) |
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 <T> Class<? extends T> getClass(String className, Class<T> type) throws ClassNotFoundException
ClassNotFoundException
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.