karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r962453 - /karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
Date Fri, 09 Jul 2010 09:02:58 GMT
Author: gnodet
Date: Fri Jul  9 09:02:57 2010
New Revision: 962453

URL: http://svn.apache.org/viewvc?rev=962453&view=rev
Log:
KARAF-96: Enhance the features to support the start level

Modified:
    karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java

Modified: karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
URL: http://svn.apache.org/viewvc/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java?rev=962453&r1=962452&r2=962453&view=diff
==============================================================================
--- karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
(original)
+++ karaf/trunk/features/core/src/main/java/org/apache/karaf/features/internal/FeaturesServiceImpl.java
Fri Jul  9 09:02:57 2010
@@ -575,10 +575,8 @@ public class FeaturesServiceImpl impleme
             
             // Define the startLevel for the bundle when defined
             int ibsl = bundleInfo.getStartLevel();
-            if (ibsl > 0 && ibsl < 100) {
-                StartLevel sl = (StartLevel) bundleContext.getService(
-                		bundleContext.getServiceReference(org.osgi.service.startlevel.StartLevel.class.getName()));
-                sl.setInitialBundleStartLevel(ibsl);           	
+            if (ibsl > 0) {
+                getStartLevel().setBundleStartLevel(b, ibsl);
             }
 
             state.bundles.add(b);



Mime
View raw message