Class FeatureOptionBuilder
java.lang.Object
org.codice.ddf.test.common.configurators.FeatureOptionBuilder
Builder class used to create Pax Exam options that will get Karaf features from a Maven
repository. To use, simply do
FeatureOptionBuilder.add(...).add(...).build().-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaddFeatureFrom(String groupId, String artifactId, String featureFileName, String featureName) Creates a newFeatureOptionBuilder.FeatureOptionthat contains the feature contained in the feature file identified by the Maven coordinates and file name provided.addFeatures(String groupId, String artifactId, String... featureNames) Creates a newFeatureOptionBuilder.FeatureOptionthat contains the features listed and contained in the features.xml file identified by the Maven coordinates provided.empty()Creates an emptyFeatureOptionBuilder.FeatureOption.
-
Method Details
-
addFeatures
public static FeatureOptionBuilder.FeatureOption addFeatures(String groupId, String artifactId, String... featureNames) Creates a newFeatureOptionBuilder.FeatureOptionthat contains the features listed and contained in the features.xml file identified by the Maven coordinates provided.- Parameters:
groupId- Maven group ID of the features.xml fileartifactId- Maven artifact ID of the features.xml filefeatureNames- names of features to install from the features.xml file identified by the Maven coordinates provided- Returns:
- this
FeatureOptionBuilder.FeatureOption
-
addFeatureFrom
public static FeatureOptionBuilder.FeatureOption addFeatureFrom(String groupId, String artifactId, String featureFileName, String featureName) Creates a newFeatureOptionBuilder.FeatureOptionthat contains the feature contained in the feature file identified by the Maven coordinates and file name provided.- Parameters:
groupId- Maven group ID of the feature fileartifactId- Maven artifact ID of the feature filefeatureFileName- name of the feature file without the extensionfeatureName- names of the features to install from the feature file identified by the Maven coordinates and file name provided- Returns:
- this
FeatureOptionBuilder.FeatureOption
-
empty
Creates an emptyFeatureOptionBuilder.FeatureOption.- Returns:
- empty
FeatureOptionBuilder.FeatureOption
-