felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r918443 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java
Date Wed, 03 Mar 2010 12:30:31 GMT
Author: fmeschbe
Date: Wed Mar  3 12:30:31 2010
New Revision: 918443

URL: http://svn.apache.org/viewvc?rev=918443&view=rev
Log:
FELIX-2119 Actually have the BaseUpdateInstallHelper class implement the Runnable interface
makes creating the Thread simpler.

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java?rev=918443&r1=918442&r2=918443&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java
Wed Mar  3 12:30:31 2010
@@ -32,7 +32,7 @@
 import org.osgi.service.packageadmin.PackageAdmin;
 
 
-abstract class BaseUpdateInstallHelper
+abstract class BaseUpdateInstallHelper implements Runnable
 {
 
     private final File bundleFile;
@@ -46,13 +46,7 @@
     {
         this.bundleFile = bundleFile;
         this.refreshPackages = refreshPackages;
-        this.updateThread = new Thread( name )
-        {
-            public void run()
-            {
-                BaseUpdateInstallHelper.this.run();
-            };
-        };
+        this.updateThread = new Thread( this, name );
         this.updateThread.setDaemon( true );
     }
 
@@ -102,7 +96,7 @@
     }
 
 
-    void run()
+    public final void run()
     {
         // wait some time for the request to settle
         sleepSilently( 500L );



Mime
View raw message