home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing;
-
- import java.util.Hashtable;
-
- final class AppContext {
- private static Hashtable security2appContexts = new Hashtable(2);
- private static Object nullSecurityContext = new Object();
- private final Hashtable table = new Hashtable(2);
-
- private AppContext(Object var1) {
- security2appContexts.put(var1, this);
- }
-
- public static AppContext getAppContext() {
- Object var0 = nullSecurityContext;
- AppContext var1 = (AppContext)security2appContexts.get(var0);
- if (var1 == null) {
- var1 = new AppContext(var0);
- security2appContexts.put(var0, var1);
- }
-
- return var1;
- }
-
- public Object get(Object var1) {
- return this.table.get(var1);
- }
-
- public Object put(Object var1, Object var2) {
- return this.table.put(var1, var2);
- }
-
- public Object remove(Object var1) {
- return this.table.remove(var1);
- }
-
- public String toString() {
- Object var1 = nullSecurityContext;
- SecurityManager var2 = System.getSecurityManager();
- if (var2 != null) {
- Object var3 = System.getSecurityManager().getSecurityContext();
- if (var3 != null) {
- var1 = var3;
- }
- }
-
- String var4 = var1.equals(nullSecurityContext) ? "null" : var1.toString();
- return this.getClass().getName() + "[SecurityContext=" + var4 + "]";
- }
- }
-