public interface FeaturesManager
| Modifier and Type | Method and Description |
|---|---|
void |
addAPIRegionExport(@Nullable String runMode,
@NotNull String exportedPackage) |
void |
addArtifact(@Nullable String runMode,
@NotNull org.apache.sling.feature.ArtifactId id) |
void |
addArtifact(@Nullable String runMode,
@NotNull org.apache.sling.feature.Artifact artifact,
@Nullable Integer startOrder) |
void |
addConfiguration(@Nullable String runMode,
@NotNull org.apache.sling.feature.Configuration cfg,
@NotNull String path,
@NotNull Dictionary<String,Object> configurationProperties)
Add a configuration
|
void |
addOrAppendRepoInitExtension(@NotNull String source,
@NotNull String text,
@Nullable String runMode)
Add repoinit instructions
|
@NotNull Map<String,String> |
getNamespaceUriByPrefix() |
@NotNull org.apache.sling.feature.Feature |
getRunMode(@Nullable String runMode) |
@Nullable org.apache.sling.feature.Feature |
getTargetFeature() |
void |
init(@NotNull org.apache.sling.feature.ArtifactId packageId) |
void |
serialize() |
void init(@NotNull
@NotNull org.apache.sling.feature.ArtifactId packageId)
@Nullable @Nullable org.apache.sling.feature.Feature getTargetFeature()
@NotNull
@NotNull org.apache.sling.feature.Feature getRunMode(@Nullable
@Nullable String runMode)
void addArtifact(@Nullable
@Nullable String runMode,
@NotNull
@NotNull org.apache.sling.feature.ArtifactId id)
void addArtifact(@Nullable
@Nullable String runMode,
@NotNull
@NotNull org.apache.sling.feature.Artifact artifact,
@Nullable
@Nullable Integer startOrder)
void addAPIRegionExport(@Nullable
@Nullable String runMode,
@NotNull
@NotNull String exportedPackage)
void addConfiguration(@Nullable
@Nullable String runMode,
@NotNull
@NotNull org.apache.sling.feature.Configuration cfg,
@NotNull
@NotNull String path,
@NotNull
@NotNull Dictionary<String,Object> configurationProperties)
throws IOException,
ConverterException
runMode - Optional runmodecfg - The configuration object for the pid and factory pid, name - no propertiespath - The path for the configurationconfigurationProperties - The configuration propertiesIOException - if an error occursConverterException - if conversion failsvoid serialize()
throws IOException
IOExceptionvoid addOrAppendRepoInitExtension(@NotNull
@NotNull String source,
@NotNull
@NotNull String text,
@Nullable
@Nullable String runMode)
throws IOException,
ConverterException
source - An identifier for the source, for example the configuration pidtext - The repoinit instructionsrunMode - Optional runmodeIOException - if an error occursConverterException - if conversion failsCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.