| org.kuali.rice.proxy.BaseTargetedInvocationHandler org.kuali.rice.resourceloader.ContextClassLoaderProxy
ContextClassLoaderProxy | public class ContextClassLoaderProxy extends BaseTargetedInvocationHandler (Code) | | A Proxy that sets the thread Context ClassLoader before invocation of the
proxied object, and resets it back afterwards.
author: Kuali Rice Team (kuali-rice@googlegroups.com) |
Method Summary | |
public static Class[] | getInterfacesToProxy(Object proxiedObject) | public static Class[] | getInterfacesToProxy(ClassLoader proxyClassLoader, Object proxiedObject) Determines the interfaces which need to be proxied and are visable to the given proxy ClassLoader. | public static Class[] | getInterfacesToProxyIncludeSpring(Object proxiedObject) | public static Class[] | getInterfacesToProxyIncludeSpring(ClassLoader proxyClassLoader, Object proxiedObject) | protected Object | invokeInternal(Object proxy, Method m, Object[] args) | public 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. | public 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) | public static Object | wrap(Object proxiedObject, Class[] classesToProxy, ClassLoader classLoader) | public static Object | wrap(Object proxiedObject) |
getInterfacesToProxy | public static Class[] getInterfacesToProxy(Object proxiedObject)(Code) | | |
getInterfacesToProxy | public static Class[] getInterfacesToProxy(ClassLoader proxyClassLoader, Object proxiedObject)(Code) | | Determines the interfaces which need to be proxied and are visable to the given proxy ClassLoader.
|
getInterfacesToProxyIncludeSpring | public static Class[] getInterfacesToProxyIncludeSpring(Object proxiedObject)(Code) | | |
getInterfacesToProxyIncludeSpring | public static Class[] getInterfacesToProxyIncludeSpring(ClassLoader proxyClassLoader, Object proxiedObject)(Code) | | |
wrap | public static Object wrap(Object proxiedObject, Class[] classesToProxy, ClassLoader proxyClassLoader, ClassLoader objectClassLoader)(Code) | | Convenience method that wraps a specified object with a ContextClassLoaderProxy, with a specified
handler classloader and proxy classloader. If the specified object is null, or the object classloader
equals the proxy classloader, the object is returned unwrapped.
Parameters: proxiedObject - the object to proxy Parameters: proxyClassLoader - the classloader OF THE PROXY INSTANCE Parameters: objectClassLoader - the classloader to set as the context classloader prior to any invocations on the proxiedObject a ContextClassLoaderProxy Proxy for the proxiedObject |
Methods inherited from org.kuali.rice.proxy.BaseTargetedInvocationHandler | public Object getTarget()(Code)(Java Doc)
|
|
|