com.sun.enterprise.deployment.archivist
Class PersistenceArchivist

java.lang.Object
  extended by com.sun.enterprise.deployment.archivist.ExtensionsArchivist
      extended by com.sun.enterprise.deployment.archivist.PersistenceArchivist
Direct Known Subclasses:
ACCPersistenceArchivist, EarPersistenceArchivist, ServerSidePersistenceArchivist, WarPersistenceArchivist

public abstract class PersistenceArchivist
extends ExtensionsArchivist


Nested Class Summary
protected static class PersistenceArchivist.SubArchivePURootScanner
           
 
Field Summary
protected static java.lang.String JAR_EXT
           
protected  java.util.logging.Logger logger
           
protected static char SEPERATOR_CHAR
           
 
Constructor Summary
PersistenceArchivist()
           
 
Method Summary
 DeploymentDescriptorFile getConfigurationDDFile(RootDeploymentDescriptor descriptor)
           
<T extends RootDeploymentDescriptor>
T
getDefaultDescriptor()
           
 XModuleType getModuleType()
           
protected static java.util.Map<java.lang.String,ReadableArchive> getProbablePersistenceRoots(ReadableArchive parentArchive, PersistenceArchivist.SubArchivePURootScanner subArchivePURootScanner)
          Gets probable persitence roots from given parentArchive using given subArchiveRootScanner
protected  java.lang.String getPuRoot(ReadableArchive archive)
           
 DeploymentDescriptorFile getStandardDDFile(RootDeploymentDescriptor descriptor)
           
static boolean isProbablePuRootJar(java.lang.String path)
           
 java.lang.Object open(Archivist main, ReadableArchive archive, RootDeploymentDescriptor descriptor)
           
protected  PersistenceUnitsDescriptor readPersistenceDeploymentDescriptor(Archivist main, ReadableArchive subArchive, java.lang.String puRoot, RootDeploymentDescriptor descriptor)
           
abstract  boolean supportsModuleType(XModuleType moduleType)
           
 
Methods inherited from class com.sun.enterprise.deployment.archivist.ExtensionsArchivist
addExtension, getGFCounterPartConfigurationDDFile, getScanner, getSunConfigurationDDFile, getSunCounterPartConfigurationDDFile, readRuntimeDeploymentDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAR_EXT

protected static final java.lang.String JAR_EXT
See Also:
Constant Field Values

SEPERATOR_CHAR

protected static final char SEPERATOR_CHAR
See Also:
Constant Field Values

logger

protected final java.util.logging.Logger logger
Constructor Detail

PersistenceArchivist

public PersistenceArchivist()
Method Detail

getStandardDDFile

public DeploymentDescriptorFile getStandardDDFile(RootDeploymentDescriptor descriptor)
Specified by:
getStandardDDFile in class ExtensionsArchivist

getConfigurationDDFile

public DeploymentDescriptorFile getConfigurationDDFile(RootDeploymentDescriptor descriptor)
Specified by:
getConfigurationDDFile in class ExtensionsArchivist

getModuleType

public XModuleType getModuleType()
Specified by:
getModuleType in class ExtensionsArchivist

supportsModuleType

public abstract boolean supportsModuleType(XModuleType moduleType)
Specified by:
supportsModuleType in class ExtensionsArchivist

open

public java.lang.Object open(Archivist main,
                             ReadableArchive archive,
                             RootDeploymentDescriptor descriptor)
                      throws java.io.IOException,
                             org.xml.sax.SAXParseException
Overrides:
open in class ExtensionsArchivist
Throws:
java.io.IOException
org.xml.sax.SAXParseException

isProbablePuRootJar

public static boolean isProbablePuRootJar(java.lang.String path)
Returns:
true of given path is probable pu root

readPersistenceDeploymentDescriptor

protected PersistenceUnitsDescriptor readPersistenceDeploymentDescriptor(Archivist main,
                                                                         ReadableArchive subArchive,
                                                                         java.lang.String puRoot,
                                                                         RootDeploymentDescriptor descriptor)
                                                                  throws java.io.IOException,
                                                                         org.xml.sax.SAXParseException
Throws:
java.io.IOException
org.xml.sax.SAXParseException

getDefaultDescriptor

public <T extends RootDeploymentDescriptor> T getDefaultDescriptor()
Specified by:
getDefaultDescriptor in class ExtensionsArchivist

getProbablePersistenceRoots

protected static java.util.Map<java.lang.String,ReadableArchive> getProbablePersistenceRoots(ReadableArchive parentArchive,
                                                                                             PersistenceArchivist.SubArchivePURootScanner subArchivePURootScanner)
Gets probable persitence roots from given parentArchive using given subArchiveRootScanner

Parameters:
parentArchive - the parentArchive within which probable persitence roots need to be scanned
subArchivePURootScanner - the scanner instance used for the scan
Returns:
Map of puroot path to probable puroot archive.
See Also:
com.sun.enterprise.deployment.archivist.EarPersistenceArchivist.SubArchivePURootScanner

getPuRoot

protected java.lang.String getPuRoot(ReadableArchive archive)


Copyright © 2012 GlassFish Community. All Rights Reserved.