Class BundleEntryHandler

    • Constructor Detail

      • BundleEntryHandler

        public BundleEntryHandler()
    • Method Detail

      • 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)
                    throws Exception
        Throws:
        Exception
      • initPackageAssemblerForPath

        public VaultPackageAssembler initPackageAssemblerForPath​(@NotNull
                                                                 @NotNull org.apache.sling.feature.ArtifactId bundleArtifactId,
                                                                 @NotNull
                                                                 @NotNull String repositoryPath,
                                                                 @NotNull
                                                                 @NotNull org.apache.sling.jcr.contentloader.PathEntry pathEntry,
                                                                 @NotNull
                                                                 @NotNull Map<org.apache.jackrabbit.vault.packaging.PackageType,​VaultPackageAssembler> cache,
                                                                 @NotNull
                                                                 @NotNull ContentPackage2FeatureModelConverter converter)
        Lazily initializes the cache with the necessary VaultPackageAssemblers
        Parameters:
        bundleArtifactId -
        repositoryPath -
        cache -
        converter -
        Returns:
        the VaultPackageAssembler from the cache to use for the given repository path
      • extractArtifactId

        @NotNull
        protected @NotNull org.apache.sling.feature.ArtifactId extractArtifactId​(@NotNull
                                                                                 @NotNull String bundleName,
                                                                                 @NotNull
                                                                                 @NotNull JarFile jarFile)
                                                                          throws IOException
        Throws:
        IOException
      • matches

        public final boolean matches​(@NotNull
                                     @NotNull String path)
        Specified by:
        matches in interface EntryHandler
      • getPattern

        @NotNull
        protected final @NotNull Pattern getPattern()