ParentContainerThreadLocalizer.java :  » Portal » Open-Portal » com » sun » portal » desktop » context » Java Open Source

Java Open Source » Portal » Open Portal 
Open Portal » com » sun » portal » desktop » context » ParentContainerThreadLocalizer.java
/* 
 * 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);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.