Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.jms.util
Class ThreadContextClassLoaderChanger

    java.lang.Object
      org.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: 1.2 $` $Id: ThreadContextClassLoaderChanger.java,v 1.2 2005/12/22 16:34:17 ovidiu Exp $
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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 JBoss Inc. All Rights Reserved.