FELIX-1276: There is no way to get all the Feature information from the FeaturesService

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@803186 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java b/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java
index de7c36a..cd1e9e4 100644
--- a/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java
+++ b/karaf/features/core/src/main/java/org/apache/felix/karaf/features/FeaturesService.java
@@ -41,4 +41,6 @@
 
     Feature[] listInstalledFeatures();
 
+    boolean isInstalled(Feature f);
+
 }
diff --git a/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java b/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java
index 2a288ac..af683d7 100644
--- a/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java
+++ b/karaf/features/core/src/main/java/org/apache/felix/karaf/features/internal/FeaturesServiceImpl.java
@@ -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();