felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r803186 - in /felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features: FeaturesService.java internal/FeaturesServiceImpl.java
Date Tue, 11 Aug 2009 16:24:47 GMT
Author: gnodet
Date: Tue Aug 11 16:24:47 2009
New Revision: 803186

URL: http://svn.apache.org/viewvc?rev=803186&view=rev
Log:
FELIX-1276: There is no way to get all the Feature information from the FeaturesService

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

Modified: felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java?rev=803186&r1=803185&r2=803186&view=diff
==============================================================================
--- felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java
(original)
+++ felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java
Tue Aug 11 16:24:47 2009
@@ -41,4 +41,6 @@
 
     Feature[] listInstalledFeatures();
 
+    boolean isInstalled(Feature f);
+
 }

Modified: felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java?rev=803186&r1=803185&r2=803186&view=diff
==============================================================================
--- felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java
(original)
+++ felix/trunk/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java
Tue Aug 11 16:24:47 2009
@@ -322,6 +322,10 @@
         return result.toArray(new Feature[result.size()]);
     }
 
+    public boolean isInstalled(Feature f) {
+        return installed.containsKey(f);
+    }
+
     protected Feature getFeature(String name, String version) throws Exception {
         if (version != null) {
             version = version.trim();



Mime
View raw message