org.backsource.utils.lang
Class FindClassContextLocal
java.lang.Object
org.backsource.utils.lang.ClassContextLocal
org.backsource.utils.lang.InheritableClassContextLocal
org.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FindClassContextLocal
public FindClassContextLocal()
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.