Class EARBasedPersistenceHelper
- java.lang.Object
-
- com.sun.enterprise.deployment.archivist.EARBasedPersistenceHelper
-
public class EARBasedPersistenceHelper extends Object
Common logic supporting persistence archivists that deal with EARs.- Author:
- tjquinn
-
-
Constructor Summary
Constructors Constructor Description EARBasedPersistenceHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.static boolean
isComponentJar(String jarName, Set<ModuleDescriptor<BundleDescriptor>> moduleDescriptors)
-
-
-
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 EARapp
- application's descriptorincludeTopLevel
- whether or not to include top-level JARs for scanningprobablePersistentArchives
- map to which new candidates will be added
-
-