Class EARBasedPersistenceHelper


  • public class EARBasedPersistenceHelper
    extends Object
    Common logic supporting persistence archivists that deal with EARs.
    Author:
    tjquinn
    • Constructor Detail

      • EARBasedPersistenceHelper

        public EARBasedPersistenceHelper()
    • Method Detail

      • isComponentJar

        public static boolean isComponentJar​(String jarName,
                                             Set<ModuleDescriptor<BundleDescriptor>> moduleDescriptors)
        Returns:
        true if the jarName corresponds to component jar (like a war or ejb.jar) in an .ear false otherwise
      • addLibraryAndTopLevelCandidates

        protected static void addLibraryAndTopLevelCandidates​(ReadableArchive earArchive,
                                                              Application app,
                                                              boolean includeTopLevel,
                                                              Map<String,​ReadableArchive> probablePersistentArchives)
        Adds candidate persistence archives from the EAR's library directory and, if selected, from the top-level.
        Parameters:
        earArchive - ReadableArchive for the EAR
        app - application's descriptor
        includeTopLevel - whether or not to include top-level JARs for scanning
        probablePersistentArchives - map to which new candidates will be added