public class ContextClassLoaderProxy extends BaseTargetedInvocationHandler
Constructor and Description |
---|
ContextClassLoaderProxy(ClassLoader classLoader,
Object target) |
Modifier and Type | Method and Description |
---|---|
static Class<?>[] |
getInterfacesToProxy(ClassLoader proxyClassLoader,
Object proxiedObject)
Determines the interfaces which need to be proxied and are visable to the given proxy ClassLoader.
|
static Class<?>[] |
getInterfacesToProxy(Object proxiedObject) |
protected Object |
invokeInternal(Object proxy,
Method m,
Object[] args) |
static Object |
wrap(Object proxiedObject) |
static Object |
wrap(Object proxiedObject,
Class<?>[] classesToProxy) |
static Object |
wrap(Object proxiedObject,
Class<?>[] classesToProxy,
ClassLoader classLoader) |
static Object |
wrap(Object proxiedObject,
Class<?>[] classesToProxy,
ClassLoader proxyClassLoader,
ClassLoader objectClassLoader)
Convenience method that wraps a specified object with a ContextClassLoaderProxy, with a specified
handler classloader and proxy classloader.
|
static Object |
wrap(Object proxiedObject,
ClassLoader classLoader) |
static Object |
wrap(Object proxiedObject,
ClassLoader proxyClassLoader,
ClassLoader objectClassLoader) |
getTarget, setTarget
invoke, proxyEquals, proxyHashCode, proxyToString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invoke
public ContextClassLoaderProxy(ClassLoader classLoader, Object target)
public static Object wrap(Object proxiedObject, Class<?>[] classesToProxy, ClassLoader proxyClassLoader, ClassLoader objectClassLoader)
proxiedObject
- the object to proxyproxyClassLoader
- the classloader OF THE PROXY INSTANCEobjectClassLoader
- the classloader to set as the context classloader prior to any invocations on the proxiedObjectpublic static Object wrap(Object proxiedObject, ClassLoader proxyClassLoader, ClassLoader objectClassLoader)
public static Object wrap(Object proxiedObject, ClassLoader classLoader)
public static Object wrap(Object proxiedObject, Class<?>[] classesToProxy, ClassLoader classLoader)
public static Class<?>[] getInterfacesToProxy(Object proxiedObject)
public static Class<?>[] getInterfacesToProxy(ClassLoader proxyClassLoader, Object proxiedObject)
protected Object invokeInternal(Object proxy, Method m, Object[] args) throws Throwable
invokeInternal
in class BaseInvocationHandler
Throwable
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.