| Package | Description |
|---|---|
| org.apache.sling.feature | |
| org.apache.sling.feature.builder | |
| org.apache.sling.feature.io.archive | |
| org.apache.sling.feature.io.json |
| Modifier and Type | Method and Description |
|---|---|
Feature |
Feature.copy()
Create a copy of the feature
|
Feature |
Feature.copy(ArtifactId id)
Create a copy of the feature with a different id For contained items like
bundles, artifacts and configurations a copy is created as well.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Feature.compareTo(Feature o) |
| Modifier and Type | Method and Description |
|---|---|
static Feature |
FeatureBuilder.assemble(ArtifactId featureId,
BuilderContext context,
Feature... features)
Assemble a feature based on the provided features.
|
static Feature |
FeatureBuilder.assemble(Feature feature,
BuilderContext context)
Assemble the full feature by processing its prototype.
|
static Feature[] |
FeatureBuilder.deduplicate(BuilderContext context,
Feature... features)
Remove duplicate and prototype features.
|
Feature |
FeatureProvider.provide(ArtifactId id)
Provide the feature with the given id.
|
static Feature[] |
FeatureBuilder.resolve(BuilderContext context,
String... featureIds)
Resolve a set of features based on their ids.
|
| Modifier and Type | Method and Description |
|---|---|
static Feature |
FeatureBuilder.assemble(ArtifactId featureId,
BuilderContext context,
Feature... features)
Assemble a feature based on the provided features.
|
static Feature |
FeatureBuilder.assemble(Feature feature,
BuilderContext context)
Assemble the full feature by processing its prototype.
|
static Feature[] |
FeatureBuilder.deduplicate(BuilderContext context,
Feature... features)
Remove duplicate and prototype features.
|
void |
MergeHandler.merge(HandlerContext context,
Feature target,
Feature source,
Extension targetEx,
Extension sourceEx)
Merge the source extension into the target extension.
|
void |
PostProcessHandler.postProcess(HandlerContext context,
Feature feature,
Extension extension)
Post process the feature with respect to the extension.
|
static void |
FeatureBuilder.resolveVariables(Feature feature,
Map<String,String> additionalVariables)
Resolve variables in the feature.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<Feature> |
ArchiveReader.read(InputStream in,
ArchiveReader.ArtifactConsumer consumer)
Read a feature model archive.
|
| Modifier and Type | Method and Description |
|---|---|
static JarOutputStream |
ArchiveWriter.write(OutputStream out,
Manifest baseManifest,
ArtifactProvider provider,
Feature... features)
Create a feature model archive.
|
| Modifier and Type | Method and Description |
|---|---|
static Feature |
FeatureJSONReader.read(Reader reader,
String location)
Read a new feature from the reader
The reader is not closed.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
FeatureJSONWriter.write(Writer writer,
Feature feature)
Writes the feature to the writer.
|
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.