incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r955906 - /sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/Activator.java
Date Fri, 18 Jun 2010 09:35:14 GMT
Author: cziegeler
Date: Fri Jun 18 09:35:14 2010
New Revision: 955906

URL: http://svn.apache.org/viewvc?rev=955906&view=rev
Log:
SLING-1560 : Improve and clean up code
Remove unused start level tracker

Modified:
    sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/Activator.java

Modified: sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/Activator.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/Activator.java?rev=955906&r1=955905&r2=955906&view=diff
==============================================================================
--- sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/Activator.java
(original)
+++ sling/trunk/installer/osgi/installer/src/main/java/org/apache/sling/osgi/installer/impl/Activator.java
Fri Jun 18 09:35:14 2010
@@ -43,7 +43,6 @@ public class Activator implements Bundle
     private static String START_LEVEL_NAME = StartLevel.class.getName();
     private static String LOG_SERVICE_NAME = LogService.class.getName();
 
-    private ServiceTracker startLevelTracker;
     private ServiceTracker packageAdminTracker;
     private ServiceTracker logServiceTracker;
     private OsgiInstallerImpl osgiControllerService;
@@ -56,10 +55,8 @@ public class Activator implements Bundle
      * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
      */
     public void start(BundleContext context) throws Exception {
-        this.startLevelTracker = new ServiceTracker(context, START_LEVEL_NAME, null);
         this.packageAdminTracker = new ServiceTracker(context, PACKAGE_ADMIN_NAME, null);
         this.logServiceTracker = new ServiceTracker(context, LOG_SERVICE_NAME, null);
-        this.startLevelTracker.open();
         this.packageAdminTracker.open();
         this.logServiceTracker.open();
 
@@ -129,10 +126,6 @@ public class Activator implements Bundle
             this.osgiControllerService.deactivate();
             this.osgiControllerService = null;
         }
-        if ( this.startLevelTracker != null ) {
-            this.startLevelTracker.close();
-            this.startLevelTracker = null;
-        }
         if ( this.packageAdminTracker != null ) {
             this.packageAdminTracker.close();
             this.packageAdminTracker = null;



Mime
View raw message