public class FeatureBuilder extends Object
| Constructor and Description |
|---|
FeatureBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static Feature |
assemble(Feature feature,
BuilderContext context)
Assemble the full feature by processing all includes.
|
static Feature[] |
deduplicate(BuilderContext context,
Feature... features)
Remove duplicate and included features.
|
static Feature[] |
resolve(BuilderContext context,
String... featureIds)
Resolve a set of features based on their ids.
|
public static Feature assemble(Feature feature, BuilderContext context)
feature - The feature to startcontext - The builder contextIllegalArgumentException - If feature or context is nullIllegalStateException - If an included 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 featuresCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.