com.atlassian.plugin.util
Class ContextClassLoaderSettingInvocationHandler

java.lang.Object
  extended by com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ContextClassLoaderSettingInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

InvocationHandler for a dynamic proxy that ensures all methods are executed with the object class's class loader as the context class loader.

Since:
3.1.0

Constructor Summary
ContextClassLoaderSettingInvocationHandler(java.lang.Object service)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method method, java.lang.Object[] objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextClassLoaderSettingInvocationHandler

public ContextClassLoaderSettingInvocationHandler(java.lang.Object service)
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object o,
                               java.lang.reflect.Method method,
                               java.lang.Object[] objects)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable


Copyright © 2013 Atlassian. All Rights Reserved.