incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1242297 - /sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/DefaultStartupHandler.java
Date Thu, 09 Feb 2012 12:30:23 GMT
Author: cziegeler
Date: Thu Feb  9 12:30:22 2012
New Revision: 1242297

URL: http://svn.apache.org/viewvc?rev=1242297&view=rev
Log:
SLING-2376 : New Startup Features

Modified:
    sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/DefaultStartupHandler.java

Modified: sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/DefaultStartupHandler.java
URL: http://svn.apache.org/viewvc/sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/DefaultStartupHandler.java?rev=1242297&r1=1242296&r2=1242297&view=diff
==============================================================================
--- sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/DefaultStartupHandler.java
(original)
+++ sling/trunk/launchpad/base/src/main/java/org/apache/sling/launchpad/base/impl/DefaultStartupHandler.java
Thu Feb  9 12:30:22 2012
@@ -137,6 +137,9 @@ public class DefaultStartupHandler
             this.expectedBundlesCount = 10;
         }
 
+        this.bundleContext.registerService(StartupHandler.class.getName(), this, null);
+        logger.log(Logger.LOG_INFO, "Started startup handler with target start level="
+               + String.valueOf(this.targetStartLevel) + ", and expected bundle count=" +
String.valueOf(this.expectedBundlesCount));
         final Thread t = new Thread(this);
         t.start();
     }
@@ -159,9 +162,6 @@ public class DefaultStartupHandler
      * @see java.lang.Runnable#run()
      */
     public void run() {
-        this.bundleContext.registerService(StartupHandler.class.getName(), this, null);
-        logger.log(Logger.LOG_INFO, "Started startup handler with target start level="
-               + String.valueOf(this.targetStartLevel) + ", and expected bundle count=" +
String.valueOf(this.expectedBundlesCount));
         while ( !this.finished.get() ) {
             Boolean doInc = null;
             try {



Mime
View raw message