org.kuali.rice.core.resourceloader
Class ContextClassLoaderBinder

java.lang.Object
  extended by org.kuali.rice.core.resourceloader.ContextClassLoaderBinder

public final class ContextClassLoaderBinder
extends Object

Utility class that binds/unbinds the context ClassLoader of the current Thread using a ThreadLocal. This class supports re-entrancy by maintaining a stack of context classloaders. NOTE: maybe implement stricter checks, by matching some contextual object or original classloader on bind to the unbind so that they are always matched (within a given context)

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ContextClassLoaderBinder()
           
 
Method Summary
static void bind(ClassLoader cl)
           
static void unbind()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextClassLoaderBinder

public ContextClassLoaderBinder()
Method Detail

bind

public static void bind(ClassLoader cl)

unbind

public static void unbind()


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.