com.sun.enterprise.deployment.archivist
Class EARBasedPersistenceHelper

java.lang.Object
  extended by com.sun.enterprise.deployment.archivist.EARBasedPersistenceHelper

public class EARBasedPersistenceHelper
extends java.lang.Object

Common logic supporting persistence archivists that deal with EARs.

Author:
tjquinn

Constructor Summary
EARBasedPersistenceHelper()
           
 
Method Summary
protected static void addLibraryAndTopLevelCandidates(ReadableArchive earArchive, Application app, boolean includeTopLevel, java.util.Map<java.lang.String,ReadableArchive> probablePersistentArchives)
          Adds candidate persistence archives from the EAR's library directory and, if selected, from the top-level.
static boolean isComponentJar(java.lang.String jarName, java.util.Set<ModuleDescriptor<BundleDescriptor>> moduleDescriptors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EARBasedPersistenceHelper

public EARBasedPersistenceHelper()
Method Detail

isComponentJar

public static boolean isComponentJar(java.lang.String jarName,
                                     java.util.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,
                                                      java.util.Map<java.lang.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


Copyright © 2012 GlassFish Community. All Rights Reserved.