24 */ |
24 */ |
25 |
25 |
26 package sun.misc; |
26 package sun.misc; |
27 |
27 |
28 public interface JavaAWTAccess { |
28 public interface JavaAWTAccess { |
29 public Object getContext(); |
|
30 public Object getExecutionContext(); |
|
31 |
29 |
32 public Object get(Object context, Object key); |
30 // Returns the AppContext used for applet logging isolation, or null if |
33 public void put(Object context, Object key, Object value); |
31 // no isolation is required. |
34 public void remove(Object context, Object key); |
32 // If there's no applet, or if the caller is a stand alone application, |
|
33 // or running in the main app context, returns null. |
|
34 // Otherwise, returns the AppContext of the calling applet. |
|
35 public Object getAppletContext(); |
35 |
36 |
36 // convenience methods whose context is the object returned by getContext() |
37 // convenience methods to cache objects in the current thread group's |
|
38 // AppContext |
37 public Object get(Object key); |
39 public Object get(Object key); |
38 public void put(Object key, Object value); |
40 public void put(Object key, Object value); |
39 public void remove(Object key); |
41 public void remove(Object key); |
40 public boolean isDisposed(); |
42 public boolean isDisposed(); |
41 public boolean isMainAppContext(); |
43 public boolean isMainAppContext(); |