org.backsource.utils.lang
Class FindClassContextLocal

java.lang.Object
  extended byorg.backsource.utils.lang.ClassContextLocal
      extended byorg.backsource.utils.lang.InheritableClassContextLocal
          extended byorg.backsource.utils.lang.FindClassContextLocal

public class FindClassContextLocal
extends InheritableClassContextLocal

Refines InheritableClassContextLocal to also try to set values in the parent classloader. This is only done in the following cirkumstances: the current classloader value is null, any of the parent class loaders values in NOT null.

Basically it tries to set a value for a classloader that already have a value, if this does not succed, the set the local one.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Field Summary
 
Fields inherited from class org.backsource.utils.lang.ClassContextLocal
map
 
Constructor Summary
FindClassContextLocal()
           
 
Method Summary
protected  boolean set(java.lang.ClassLoader cl, java.lang.Object object)
           
 void set(java.lang.Object object)
          Set value in current context class loader or parent classloader if a value was already set.
 
Methods inherited from class org.backsource.utils.lang.InheritableClassContextLocal
get, get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindClassContextLocal

public FindClassContextLocal()
Method Detail

set

public void set(java.lang.Object object)
Set value in current context class loader or parent classloader if a value was already set. Otherwise set in current context class loader.

Overrides:
set in class ClassContextLocal
Parameters:
object - save object in current classloader.

set

protected boolean set(java.lang.ClassLoader cl,
                      java.lang.Object object)


Copyright © 2000-2004 Backsource. All Rights Reserved.