public abstract class PersistenceArchivist extends ExtensionsArchivist
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PersistenceArchivist.SubArchivePURootScanner |
| Modifier and Type | Field and Description |
|---|---|
static Logger |
deplLogger |
protected static String |
JAR_EXT |
protected static char |
SEPERATOR_CHAR |
confDDFiles, standardDD| Constructor and Description |
|---|
PersistenceArchivist() |
| Modifier and Type | Method and Description |
|---|---|
List<ConfigurationDeploymentDescriptorFile> |
getConfigurationDDFiles(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) |
<T extends org.glassfish.deployment.common.RootDeploymentDescriptor> |
getDefaultDescriptor() |
protected static Map<String,org.glassfish.api.deployment.archive.ReadableArchive> |
getProbablePersistenceRoots(org.glassfish.api.deployment.archive.ReadableArchive parentArchive,
PersistenceArchivist.SubArchivePURootScanner subArchivePURootScanner)
Gets probable persitence roots from given parentArchive using given subArchiveRootScanner
|
protected String |
getPuRoot(org.glassfish.api.deployment.archive.ReadableArchive archive) |
DeploymentDescriptorFile |
getStandardDDFile(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) |
static boolean |
isProbablePuRootJar(String path) |
Object |
open(Archivist main,
org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.deployment.common.RootDeploymentDescriptor descriptor)
Read the standard deployment descriptor of the extension
|
protected PersistenceUnitsDescriptor |
readPersistenceDeploymentDescriptor(Archivist main,
org.glassfish.api.deployment.archive.ReadableArchive subArchive,
String puRoot,
org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) |
abstract boolean |
supportsModuleType(org.glassfish.api.deployment.archive.ArchiveType moduleType) |
void |
writeDeploymentDescriptors(Archivist main,
BundleDescriptor descriptor,
org.glassfish.api.deployment.archive.ReadableArchive in,
org.glassfish.api.deployment.archive.WritableArchive out)
writes the deployment descriptors (standard and runtime)
to a JarFile using the right deployment descriptor path
|
addExtension, getConfigurationDDFile, getScanner, readRuntimeDeploymentDescriptor, writeRuntimeDeploymentDescriptors, writeStandardDeploymentDescriptorsprotected static final String JAR_EXT
protected static final char SEPERATOR_CHAR
public static final Logger deplLogger
public DeploymentDescriptorFile getStandardDDFile(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor)
getStandardDDFile in class ExtensionsArchivistpublic List<ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor)
getConfigurationDDFiles in class ExtensionsArchivistpublic abstract boolean supportsModuleType(org.glassfish.api.deployment.archive.ArchiveType moduleType)
supportsModuleType in class ExtensionsArchivistpublic Object open(Archivist main, org.glassfish.api.deployment.archive.ReadableArchive archive, org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) throws IOException, SAXParseException
ExtensionsArchivistopen in class ExtensionsArchivistarchive - the archivedescriptor - the main deployment descriptorIOExceptionSAXParseExceptionpublic static boolean isProbablePuRootJar(String path)
protected PersistenceUnitsDescriptor readPersistenceDeploymentDescriptor(Archivist main, org.glassfish.api.deployment.archive.ReadableArchive subArchive, String puRoot, org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) throws IOException, SAXParseException
IOExceptionSAXParseExceptionpublic <T extends org.glassfish.deployment.common.RootDeploymentDescriptor> T getDefaultDescriptor()
getDefaultDescriptor in class ExtensionsArchivistprotected static Map<String,org.glassfish.api.deployment.archive.ReadableArchive> getProbablePersistenceRoots(org.glassfish.api.deployment.archive.ReadableArchive parentArchive, PersistenceArchivist.SubArchivePURootScanner subArchivePURootScanner)
parentArchive - the parentArchive within which probable persitence roots need to be scannedsubArchivePURootScanner - the scanner instance used for the scancom.sun.enterprise.deployment.archivist.EarPersistenceArchivist.SubArchivePURootScannerprotected String getPuRoot(org.glassfish.api.deployment.archive.ReadableArchive archive)
public void writeDeploymentDescriptors(Archivist main, BundleDescriptor descriptor, org.glassfish.api.deployment.archive.ReadableArchive in, org.glassfish.api.deployment.archive.WritableArchive out) throws IOException
writeDeploymentDescriptors in class ExtensionsArchivistin - the input archiveout - the abstract archive file to write toIOExceptionCopyright © 2013. All Rights Reserved.