9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.misc; 27 28 public interface JavaAWTAccess { 29 public Object getContext(); 30 public Object getExecutionContext(); 31 32 public Object get(Object context, Object key); 33 public void put(Object context, Object key, Object value); 34 public void remove(Object context, Object key); 35 36 // convenience methods whose context is the object returned by getContext() 37 public Object get(Object key); 38 public void put(Object key, Object value); 39 public void remove(Object key); 40 public boolean isDisposed(); 41 public boolean isMainAppContext(); 42 } | 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.misc; 27 28 public interface JavaAWTAccess { 29 30 // Returns the AppContext used for applet logging isolation, or null if 31 // no isolation is required. 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(); 36 37 // convenience methods to cache objects in the current thread group's 38 // AppContext 39 public Object get(Object key); 40 public void put(Object key, Object value); 41 public void remove(Object key); 42 public boolean isDisposed(); 43 public boolean isMainAppContext(); 44 } |