@Contract public abstract class ExtensionsArchivist extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<ConfigurationDeploymentDescriptorFile> |
confDDFiles |
static Logger |
deplLogger |
protected DeploymentDescriptorFile |
standardDD |
| Constructor and Description |
|---|
ExtensionsArchivist() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.glassfish.deployment.common.RootDeploymentDescriptor> |
addExtension(org.glassfish.deployment.common.RootDeploymentDescriptor root,
org.glassfish.deployment.common.RootDeploymentDescriptor extension)
Add the extension descriptor to the main descriptor
|
ConfigurationDeploymentDescriptorFile |
getConfigurationDDFile(Archivist main,
org.glassfish.deployment.common.RootDeploymentDescriptor descriptor,
org.glassfish.api.deployment.archive.ReadableArchive archive) |
abstract List<ConfigurationDeploymentDescriptorFile> |
getConfigurationDDFiles(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) |
abstract <T extends org.glassfish.deployment.common.RootDeploymentDescriptor> |
getDefaultDescriptor() |
ModuleScanner |
getScanner()
Returns the scanner for this archivist
|
abstract DeploymentDescriptorFile |
getStandardDDFile(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) |
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
|
Object |
readRuntimeDeploymentDescriptor(Archivist main,
org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.deployment.common.RootDeploymentDescriptor descriptor)
Read the runtime deployment descriptors of the extension
|
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
|
void |
writeRuntimeDeploymentDescriptors(Archivist main,
BundleDescriptor descriptor,
org.glassfish.api.deployment.archive.ReadableArchive in,
org.glassfish.api.deployment.archive.WritableArchive out)
writes the runtime deployment descriptors to an abstract archive
|
void |
writeStandardDeploymentDescriptors(Archivist main,
BundleDescriptor descriptor,
org.glassfish.api.deployment.archive.WritableArchive out)
writes the standard deployment descriptors to an abstract archive
|
public static final Logger deplLogger
protected DeploymentDescriptorFile standardDD
protected List<ConfigurationDeploymentDescriptorFile> confDDFiles
public abstract DeploymentDescriptorFile getStandardDDFile(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor)
public abstract List<ConfigurationDeploymentDescriptorFile> getConfigurationDDFiles(org.glassfish.deployment.common.RootDeploymentDescriptor descriptor)
public ConfigurationDeploymentDescriptorFile getConfigurationDDFile(Archivist main, org.glassfish.deployment.common.RootDeploymentDescriptor descriptor, org.glassfish.api.deployment.archive.ReadableArchive archive) throws IOException
IOExceptionpublic abstract boolean supportsModuleType(org.glassfish.api.deployment.archive.ArchiveType moduleType)
the - moduleTypepublic abstract <T extends org.glassfish.deployment.common.RootDeploymentDescriptor> T getDefaultDescriptor()
public ModuleScanner getScanner()
public <T extends org.glassfish.deployment.common.RootDeploymentDescriptor> void addExtension(org.glassfish.deployment.common.RootDeploymentDescriptor root,
org.glassfish.deployment.common.RootDeploymentDescriptor extension)
root - the main descriptorextension - the extension descriptorpublic Object open(Archivist main, org.glassfish.api.deployment.archive.ReadableArchive archive, org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) throws IOException, SAXParseException
archivist - the primary archivist for this archivearchive - the archivedescriptor - the main deployment descriptorIOExceptionSAXParseExceptionpublic Object readRuntimeDeploymentDescriptor(Archivist main, org.glassfish.api.deployment.archive.ReadableArchive archive, org.glassfish.deployment.common.RootDeploymentDescriptor descriptor) throws IOException, SAXParseException
archivist - the primary archivist for this archivearchive - the archivedescriptor - the extension deployment descriptorIOExceptionSAXParseExceptionpublic void writeDeploymentDescriptors(Archivist main, BundleDescriptor descriptor, org.glassfish.api.deployment.archive.ReadableArchive in, org.glassfish.api.deployment.archive.WritableArchive out) throws IOException
in - the input archiveout - the abstract archive file to write toIOExceptionpublic void writeStandardDeploymentDescriptors(Archivist main, BundleDescriptor descriptor, org.glassfish.api.deployment.archive.WritableArchive out) throws IOException
out - archive to write toIOExceptionpublic void writeRuntimeDeploymentDescriptors(Archivist main, BundleDescriptor descriptor, org.glassfish.api.deployment.archive.ReadableArchive in, org.glassfish.api.deployment.archive.WritableArchive out) throws IOException
in - the input archiveout - output archiveIOExceptionCopyright © 2013. All Rights Reserved.