public class FeaturesSupport
extends org.apache.karaf.cellar.core.CellarSupport
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.karaf.features.FeaturesService |
featuresService |
| Constructor and Description |
|---|
FeaturesSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.apache.karaf.features.FeaturesService |
getFeaturesService() |
void |
init(org.osgi.framework.BundleContext bundleContext) |
Boolean |
isFeatureInstalledLocally(String name,
String version)
Check if a feature is already installed locally.
|
Boolean |
isRepositoryRegisteredLocally(String uri)
Check if a features repository is already registered locally.
|
void |
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService) |
public void init(org.osgi.framework.BundleContext bundleContext)
public void destroy()
public Boolean isFeatureInstalledLocally(String name, String version)
name - the feature name.version - the feature version.public Boolean isRepositoryRegisteredLocally(String uri)
uri - the features repository URI.public org.apache.karaf.features.FeaturesService getFeaturesService()
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
Copyright © 2019 The Apache Software Foundation. All rights reserved.