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() |
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 |
pushFeature(org.apache.karaf.features.Feature feature,
org.apache.karaf.cellar.core.Group group)
Push a feature in a cluster group
|
void |
pushFeature(org.apache.karaf.features.Feature feature,
org.apache.karaf.cellar.core.Group group,
Boolean force)
Push a feature in a cluster group.
|
void |
pushRepository(org.apache.karaf.features.Repository repository,
org.apache.karaf.cellar.core.Group group)
Push a features repository in a cluster group.
|
void |
removeRepository(org.apache.karaf.features.Repository repository,
org.apache.karaf.cellar.core.Group group)
Remove a features repository from a cluster group.
|
void |
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService) |
public void init()
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 void pushFeature(org.apache.karaf.features.Feature feature,
org.apache.karaf.cellar.core.Group group)
feature - the feature to push to the cluster group.group - the cluster group where to push the feature.public void pushFeature(org.apache.karaf.features.Feature feature,
org.apache.karaf.cellar.core.Group group,
Boolean force)
feature - the feature to push to the cluster group.group - the cluster group where to push the feature.force - true to force the bundle status as well, false else.public void pushRepository(org.apache.karaf.features.Repository repository,
org.apache.karaf.cellar.core.Group group)
repository - the features repository to push.group - the cluster group where to push.public void removeRepository(org.apache.karaf.features.Repository repository,
org.apache.karaf.cellar.core.Group group)
repository - the features repository to remove from the cluster group.group - the cluster group where to remove from.public org.apache.karaf.features.FeaturesService getFeaturesService()
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.