Class BundleEntryHandler
java.lang.Object
org.apache.sling.feature.cpconverter.handlers.BundleEntryHandler
- All Implemented Interfaces:
EntryHandler
- Direct Known Subclasses:
SlingInitialContentBundleHandler
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull org.apache.sling.feature.Artifact
extractFeatureArtifact
(@NotNull String bundleName, @NotNull JarFile jarFile) protected String
extractTargetRunMode
(String path, ContentPackage2FeatureModelConverter converter, String runMode, String runModeMatch) protected final @NotNull Pattern
void
handle
(@NotNull String path, @NotNull org.apache.jackrabbit.vault.fs.io.Archive archive, @NotNull org.apache.jackrabbit.vault.fs.io.Archive.Entry entry, @NotNull ContentPackage2FeatureModelConverter converter, String runMode) final boolean
void
setBundleSlingInitialContentExtractor
(BundleSlingInitialContentExtractor bundleSlingInitialContentExtractor) void
setSlingInitialContentPolicy
(@NotNull ContentPackage2FeatureModelConverter.SlingInitialContentPolicy slingInitialContentPolicy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sling.feature.cpconverter.handlers.EntryHandler
handle, withConfig
-
Field Details
-
slingInitialContentPolicy
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
BundleEntryHandler
public BundleEntryHandler()
-
-
Method Details
-
setSlingInitialContentPolicy
public void setSlingInitialContentPolicy(@NotNull @NotNull ContentPackage2FeatureModelConverter.SlingInitialContentPolicy slingInitialContentPolicy) -
handle
public void handle(@NotNull @NotNull String path, @NotNull @NotNull org.apache.jackrabbit.vault.fs.io.Archive archive, @NotNull @NotNull org.apache.jackrabbit.vault.fs.io.Archive.Entry entry, @NotNull @NotNull ContentPackage2FeatureModelConverter converter, String runMode) throws IOException, ConverterException - Throws:
IOException
ConverterException
-
extractFeatureArtifact
@NotNull protected @NotNull org.apache.sling.feature.Artifact extractFeatureArtifact(@NotNull @NotNull String bundleName, @NotNull @NotNull JarFile jarFile) throws IOException - Throws:
IOException
-
setBundleSlingInitialContentExtractor
public void setBundleSlingInitialContentExtractor(BundleSlingInitialContentExtractor bundleSlingInitialContentExtractor) -
matches
- Specified by:
matches
in interfaceEntryHandler
-
getPattern
-
extractTargetRunMode
protected String extractTargetRunMode(String path, ContentPackage2FeatureModelConverter converter, String runMode, String runModeMatch)
-