Leo Yagupolsky - 2019-05-22
  • Description has changed:

Diff:

--- old
+++ new
@@ -1,4 +1,46 @@
 ~~~
+package yl.yljwl;
+
+import yl.ylcommons.YLGenericBean;
+import yl.ylcommons.YLGenericPair;
+import yl.ylcommons.YLUtils;
+import java.io.IOException;
+import java.io.Serializable;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.TreeMap;
+
+/**
+ * Created by yl on Apr 24 2019
+ */
+class JWLSessionContext implements Serializable {
+    private TreeMap<String, YLGenericBean> tabScopeBeans = new TreeMap<>();
+
+    YLGenericPair<String, YLGenericBean> getTabScopeBean(boolean multiTab, String tabId, boolean toCreate) {
+        final YLGenericPair<String, YLGenericBean> ret = new YLGenericPair<>();
+        if(multiTab) {
+
+            ret.setValue2(tabScopeBeans.get(tabId));
+        }
+        else {
+            ret.setValue1(null);
+        }
+
+
+        //YLGenericBean ret = tabScopeBeans.get(multiTab ? tabId : String.valueOf(null));
+        return ret;
+    }
+
+    private void writeObject(java.io.ObjectOutputStream out) throws ClassNotFoundException, IOException {
+        YLUtils.serializeObject(this, out);
+    }
+
+    private void readObject(java.io.ObjectInputStream in) throws ClassNotFoundException, IOException {
+        final JWLSessionContext o = YLUtils.deserializeObject(getClass(), in);
+        tabScopeBeans = o.tabScopeBeans;
+    }
+}
+
 package yl.yljwl;

 import yl.ylcommons.YLGenericPair;