public class BundleSlingInitialContentExtractor extends Object
Modifier and Type | Field and Description |
---|---|
protected AssemblerProvider |
assemblerProvider |
protected org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.ContentReaderProvider |
contentReaderProvider |
protected org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.ParentFolderRepoInitHandler |
parentFolderRepoInitHandler |
Constructor and Description |
---|
BundleSlingInitialContentExtractor() |
Modifier and Type | Method and Description |
---|---|
void |
addRepoInitExtension(@NotNull List<VaultPackageAssembler> assemblers,
@NotNull FeaturesManager featureManager) |
@Nullable InputStream |
extract(@NotNull BundleSlingInitialContentExtractContext context)
Extract the bundle sling initial content, assemble it into package assemblers into a different package,
And strip the bundle of all the sling initial content.
|
protected void |
finalizePackageAssembly(@NotNull BundleSlingInitialContentExtractContext context) |
void |
reset() |
protected final AssemblerProvider assemblerProvider
protected final org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.ContentReaderProvider contentReaderProvider
protected final org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.ParentFolderRepoInitHandler parentFolderRepoInitHandler
@Nullable public @Nullable InputStream extract(@NotNull @NotNull BundleSlingInitialContentExtractContext context) throws IOException, ConverterException
context
- all context variables needed to perform the extraction.IOException
ConverterException
public void reset()
public void addRepoInitExtension(@NotNull @NotNull List<VaultPackageAssembler> assemblers, @NotNull @NotNull FeaturesManager featureManager) throws IOException, ConverterException
IOException
ConverterException
protected void finalizePackageAssembly(@NotNull @NotNull BundleSlingInitialContentExtractContext context) throws IOException, ConverterException
IOException
ConverterException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.