commit | 6c90a030f0318f2bd36bcf9dfb6fcc5869c43c77 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Tue Aug 11 16:24:47 2009 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Tue Aug 11 16:24:47 2009 +0000 |
tree | b4b4e1a0b4bd7cdf9702ca0c7fffc4c2f95a5d3f | |
parent | 9ede1c2e562de2c0e33c57fc6d9e9de3421f591a [diff] |
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();