org.backsource.utils.lang
Class InheritableClassContextLocal

java.lang.Object
  extended byorg.backsource.utils.lang.ClassContextLocal
      extended byorg.backsource.utils.lang.InheritableClassContextLocal
Direct Known Subclasses:
FindClassContextLocal

public class InheritableClassContextLocal
extends ClassContextLocal

Refines the ClassContextLocal to make set values possible to be "inherited" by child classladers.

Setting a value will whoever only affect the current classloader.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

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

Constructor Detail

InheritableClassContextLocal

public InheritableClassContextLocal()
Method Detail

get

public java.lang.Object get()
Get value from current context class loader or a parent classloader if no value is set.

Overrides:
get in class ClassContextLocal
Returns:
Object set in this classloader or a parent earlier, or null.

get

protected java.lang.Object get(java.lang.ClassLoader cl)


Copyright © 2000-2004 Backsource. All Rights Reserved.