public class KarafExtender extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
FEATURES_BOOT  | 
static String | 
FEATURES_URI  | 
static String | 
WAIT_FOR_KAR_ATTRIBUTE  | 
| Constructor and Description | 
|---|
KarafExtender()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
destroy()  | 
void | 
filterFeatures(List<Feature> features)
Any feature that starts with '!' will be removed
 from the list, and will remove all other features
 with the same name and version. 
 | 
List<Feature> | 
getFeaturesBoot()  | 
List<Feature> | 
getFeaturesIn(Path featuresBootFile)  | 
List<Repository> | 
getRepositories()  | 
void | 
init()  | 
void | 
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)  | 
void | 
setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)  | 
void | 
setKarService(org.apache.karaf.kar.KarService karService)  | 
void | 
setMavenResolver(org.ops4j.pax.url.mvn.MavenResolver mavenResolver)  | 
public static final String WAIT_FOR_KAR_ATTRIBUTE
public static final String FEATURES_URI
public static final String FEATURES_BOOT
public void init()
          throws InterruptedException
InterruptedExceptionpublic void destroy()
public List<Repository> getRepositories() throws IOException
IOExceptionpublic List<Feature> getFeaturesIn(Path featuresBootFile) throws IOException
IOExceptionpublic List<Feature> getFeaturesBoot() throws IOException
IOExceptionpublic void filterFeatures(List<Feature> features)
feature-a feature-b !feature-b !feature-cafter calling this function, the list will contain:
feature-a
features - public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
public void setMavenResolver(org.ops4j.pax.url.mvn.MavenResolver mavenResolver)
public void setFeaturesService(org.apache.karaf.features.FeaturesService featuresService)
public void setKarService(org.apache.karaf.kar.KarService karService)
Copyright © 2020. All rights reserved.