You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ap...@apache.org on 2008/02/21 14:22:48 UTC
svn commit: r629775 - in
/harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet:
AppletThreadGroup.java CodeBase.java
Author: apetrenko
Date: Thu Feb 21 05:22:47 2008
New Revision: 629775
URL: http://svn.apache.org/viewvc?rev=629775&view=rev
Log:
CodeBase class is switched from AWT specific ThreadGroup to AppletThreadGroup
Added:
harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/AppletThreadGroup.java (with props)
Modified:
harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/CodeBase.java
Added: harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/AppletThreadGroup.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/AppletThreadGroup.java?rev=629775&view=auto
==============================================================================
--- harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/AppletThreadGroup.java (added)
+++ harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/AppletThreadGroup.java Thu Feb 21 05:22:47 2008
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.harmony.applet;
+
+public class AppletThreadGroup extends ThreadGroup {
+ public AppletThreadGroup(String name) {
+ super(name);
+ }
+
+ public void dispose() {
+ }
+}
Propchange: harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/AppletThreadGroup.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/CodeBase.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/CodeBase.java?rev=629775&r1=629774&r2=629775&view=diff
==============================================================================
--- harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/CodeBase.java (original)
+++ harmony/enhanced/sandbox/mozillaplugin/src/main/java/org/apache/harmony/applet/CodeBase.java Thu Feb 21 05:22:47 2008
@@ -14,19 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-/**
- * @author Pavel Dolgov
- * @version $Revision: 1.2 $
- */
package org.apache.harmony.applet;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.IdentityHashMap;
-import org.apache.harmony.awt.ContextThreadGroup;
-
-
/**
* Common context for all applets loaded from the same code base
*/
@@ -34,7 +27,7 @@
final URL codeBase;
final URLClassLoader classLoader;
- final ContextThreadGroup threadGroup;
+ final AppletThreadGroup threadGroup;
final Factory factory;
private final IdentityHashMap<Document, DocumentSlice> docSlices = new IdentityHashMap<Document, DocumentSlice>();
@@ -43,7 +36,7 @@
this.codeBase = url;
this.factory = factory;
classLoader = new URLClassLoader(new URL[]{ url });
- threadGroup = new ContextThreadGroup("Context-" + url.toString());
+ threadGroup = new AppletThreadGroup("Context-" + url.toString());
threadGroup.setMaxPriority(4);
}