You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2014/10/09 16:16:33 UTC
[jira] [Commented] (KARAF-3271) Add isInstalled method in Feature
interface
[ https://issues.apache.org/jira/browse/KARAF-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165163#comment-14165163 ]
Jean-Baptiste Onofré commented on KARAF-3271:
---------------------------------------------
This method already exists. See https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob_plain;f=features/core/src/main/java/org/apache/karaf/features/FeaturesService.java;hb=karaf-3.0.x:
{code}
boolean isInstalled(Feature f);
{code}
You can also directly list only installed features:
{code}
Feature[] listInstalledFeatures();
{code}
> Add isInstalled method in Feature interface
> -------------------------------------------
>
> Key: KARAF-3271
> URL: https://issues.apache.org/jira/browse/KARAF-3271
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-feature
> Affects Versions: 3.0.3
> Reporter: Brad Hoffman
> Priority: Minor
>
> I am using org.apache.karaf.features.FeatureService to query all Features installed on the system. After acquiring all the features I'd like to have feature.isInstalled() available.
> Currently as a work around I'm calling listFeatures()/listRepositories() then afterwards making a call to featureService.isInstalled() for each feature.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)