1 23 package com.sun.enterprise; 24 25 import java.lang.InheritableThreadLocal ; 26 import java.util.Hashtable ; 27 28 44 public class ExecutionContext { 45 private static InheritableThreadLocal current= new InheritableThreadLocal (); 46 47 54 public static void setContext(Hashtable ctxTable) { 55 if (ctxTable != null) { 56 current.set(ctxTable); 57 } else { 58 current.set(new Hashtable ()); 59 } 60 } 61 62 68 public static Hashtable getContext() { 69 if (current.get() == null) { 70 setContext(null); } 72 return (Hashtable ) current.get(); 73 } 74 } 75 76 77 78 79 80 | Popular Tags |