| Package | Description |
|---|---|
| org.apache.sling.feature | |
| org.apache.sling.feature.builder | |
| org.apache.sling.feature.io.archive | |
| org.apache.sling.feature.io.artifacts |
| Modifier and Type | Method and Description |
|---|---|
ArtifactId |
ArtifactId.changeClassifier(String newClassifier)
Provide artifact id with a different classifier.
|
ArtifactId |
ArtifactId.changeType(String newType)
Provide artifact id with a different type.
|
ArtifactId |
ArtifactId.changeVersion(String newVersion)
Provide artifact id with a different version.
|
static ArtifactId |
ArtifactId.fromMvnId(String coordinates)
Create a new artifact id from maven coordinates/id
groupId:artifactId[:packaging[:classifier]]:version
|
static ArtifactId |
ArtifactId.fromMvnPath(String path)
Create a new artifact id from a maven path The schema is
groupIdPath/artifactId/version/artifactId-version[-classifier].type |
static ArtifactId |
ArtifactId.fromMvnUrl(String url)
Create a new artifact id from a maven url,
'mvn:' group-id '/' artifact-id [ '/' [version] [ '/' [type] [ '/' classifier ] ] ] ]
|
ArtifactId[] |
Artifact.getFeatureOrigins() |
ArtifactId |
Prototype.getId()
Get the id of the artifact.
|
ArtifactId |
Feature.getId()
Get the id of the artifact.
|
ArtifactId |
Artifact.getId()
Get the id of the artifact.
|
static ArtifactId |
ArtifactId.parse(String s)
Create a new artifact id from a string, the string must either be a
mvn url or a mvn id (= coordinates)
|
| Modifier and Type | Method and Description |
|---|---|
Set<ArtifactId> |
Artifact.getAliases(boolean includeMain)
Obtain the alias or aliases for the artifact.
|
Map<String,List<ArtifactId>> |
Prototype.getArtifactExtensionRemovals()
Get the list of artifacts removed from extensions The returned object is
modifiable.
|
List<ArtifactId> |
Prototype.getBundleRemovals()
Get the list of artifact removals The returned object is modifiable.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ArtifactId.compareTo(ArtifactId o) |
boolean |
Artifacts.containsExact(ArtifactId id)
Checks whether the exact artifact is available
|
boolean |
Artifacts.containsSame(ArtifactId id)
Checks whether the same artifact is available, neglecting the version
|
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.
|
Artifact |
Artifact.copy(ArtifactId id)
Create a copy of the artifact with a different id
|
Artifact |
Artifacts.getExact(ArtifactId id)
Get the artifact for the given id
|
Artifact |
Artifacts.getSame(ArtifactId id)
Get the artifact for the given id, neglecting the version
|
boolean |
ArtifactId.isSame(ArtifactId id)
Test whether the artifact id is pointing to the same artifact but potentially a different version
|
boolean |
Artifacts.removeExact(ArtifactId id)
Remove the exact artifact.
|
boolean |
Artifacts.removeSame(ArtifactId id)
Remove the same artifact, neglecting the version.
|
void |
Artifact.setFeatureOrigins(ArtifactId... featureOrigins) |
| Constructor and Description |
|---|
Artifact(ArtifactId id)
Construct a new artifact
|
Feature(ArtifactId id)
Construct a new feature.
|
Prototype(ArtifactId id)
Construct a new Include.
|
| Modifier and Type | Method and Description |
|---|---|
BuilderContext |
BuilderContext.addArtifactsOverride(ArtifactId override)
Add an override for artifact clashes.
|
static Feature |
FeatureBuilder.assemble(ArtifactId featureId,
BuilderContext context,
Feature... features)
Assemble a feature based on the provided features.
|
Feature |
FeatureProvider.provide(ArtifactId id)
Provide the feature with the given id.
|
URL |
ArtifactProvider.provide(ArtifactId id)
Provide the artifact with the given id.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ArchiveReader.ArtifactConsumer.consume(ArtifactId artifactId,
InputStream is)
Consume the artifact from the archive The input stream must not be closed by
the consumer.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
ArtifactManager.provide(ArtifactId id) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.