/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
*/
package com.sun.portal.desktop.context;
//
// this class may introduce some performance troubles using java 1.2,
// but they are reported to be fixed in java 1.3.
//
public class ParentContainerThreadLocalizer {
//private static InheritableThreadLocal providerContextThreadLocal = new InheritableThreadLocal();
private static ThreadLocal parentContainerThreadLocal = new ThreadLocal();
private ParentContainerThreadLocalizer() {
// nothing, cannot be called
}
public static String get() {
String pc = (String)parentContainerThreadLocal.get();
return pc;
}
public static void set(String pc) {
parentContainerThreadLocal.set(pc);
}
}
|