public abstract class FeatureBuilder extends Object
| Constructor and Description |
|---|
FeatureBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static Feature |
assemble(ArtifactId featureId,
BuilderContext context,
Feature... features)
Assemble a feature based on the provided features.
|
static Feature |
assemble(Feature feature,
BuilderContext context)
Assemble the full feature by processing its prototype.
|
static Feature[] |
deduplicate(BuilderContext context,
Feature... features)
Remove duplicate and prototype features.
|
static Feature[] |
resolve(BuilderContext context,
String... featureIds)
Resolve a set of features based on their ids.
|
static void |
resolveVariables(Feature feature,
Map<String,String> additionalVariables)
Resolve variables in the feature.
|
public static Feature assemble(Feature feature, BuilderContext context)
feature - The feature to startcontext - The builder contextIllegalArgumentException - If feature or context is nullIllegalStateException - If a prototype feature can't be provided or merged.public static Feature[] resolve(BuilderContext context, String... featureIds)
context - The builder contextfeatureIds - The feature idsnull
throws IllegalStateException If the provided ids are invalid, or the feature can't be providedpublic static Feature[] deduplicate(BuilderContext context, Feature... features)
context - The builder contextfeatures - A list of featurespublic static Feature assemble(ArtifactId featureId, BuilderContext context, Feature... features)
featureId - The feature id to use.context - The builder contextfeatures - The featuresnull
throws IllegalStateException If a feature can't be providedpublic static void resolveVariables(Feature feature, Map<String,String> additionalVariables)
feature - The featureadditionalVariables - Optional additional variablesCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.