org.jboss.jms.util
Class ThreadContextClassLoaderChanger

java.lang.Object
  extended byorg.jboss.jms.util.ThreadContextClassLoaderChanger

public class ThreadContextClassLoaderChanger
extends java.lang.Object

A thread context classloader changer. This class is an abomination. It is here for experimental purposes only. The way it changes the class loader (and more important, the way it stores the saved thread context class loader) is inneficient and dangerous. TODO: Do not use it in the production version. See http://www.jboss.org/index.html?module=bb&op=viewtopic&t=74434 for an alternative solution.

Version:
$Revision: 537 $ $Id: ThreadContextClassLoaderChanger.java 537 2005-12-22 16:34:17Z ovidiu $
Author:
Ovidiu Feodorov

Constructor Summary
ThreadContextClassLoaderChanger()
           
 
Method Summary
 void restore()
          Use it from a finally block.
 void set(java.lang.ClassLoader cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadContextClassLoaderChanger

public ThreadContextClassLoaderChanger()
Method Detail

set

public void set(java.lang.ClassLoader cl)

restore

public void restore()
Use it from a finally block.



Copyright © 2006 JBoss Inc. All Rights Reserved.