com.ibm.team.build.internal.hjplugin
Class RTCFacadeFactory.RTCFacadeWrapper

java.lang.Object
  extended by com.ibm.team.build.internal.hjplugin.RTCFacadeFactory.RTCFacadeWrapper
Enclosing class:
RTCFacadeFactory

public static class RTCFacadeFactory.RTCFacadeWrapper
extends Object

Wrapper on the facade to ensure the class loader is setup and restored between calls


Constructor Summary
RTCFacadeFactory.RTCFacadeWrapper()
           
 
Method Summary
 Object invoke(String methodName, Class[] argumentTypes, Object... arguments)
           
protected  void resetContextClassLoader(ClassLoader classLoader)
           
protected  ClassLoader setContextClassLoader()
          Sets the current thread's context class loader to be ours.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RTCFacadeFactory.RTCFacadeWrapper

public RTCFacadeFactory.RTCFacadeWrapper()
Method Detail

invoke

public Object invoke(String methodName,
                     Class[] argumentTypes,
                     Object... arguments)
              throws Exception
Throws:
Exception

setContextClassLoader

protected ClassLoader setContextClassLoader()
Sets the current thread's context class loader to be ours. This is needed to ensure that the EMF package registry can find the previously registered packages. Without this, you'll likely see EMF package not found errors.


resetContextClassLoader

protected void resetContextClassLoader(ClassLoader classLoader)


Copyright © 2004-2013. All Rights Reserved.