public abstract class GenericHandler extends Object implements org.glassfish.api.deployment.archive.ArchiveHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.glassfish.hk2.api.ServiceLocator |
habitat |
| Constructor and Description |
|---|
GenericHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
expand(org.glassfish.api.deployment.archive.ReadableArchive source,
org.glassfish.api.deployment.archive.WritableArchive target,
org.glassfish.api.deployment.DeploymentContext context)
Prepares the jar file to a format the ApplicationContainer is
expecting.
|
List<URI> |
getClassPathURIs(org.glassfish.api.deployment.archive.ReadableArchive archive)
Returns the classpath URIs for this archive.
|
String |
getDefaultApplicationName(org.glassfish.api.deployment.archive.ReadableArchive archive) |
String |
getDefaultApplicationName(org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.api.deployment.DeploymentContext context)
Returns the default application name usable for identifying the archive.
|
String |
getDefaultApplicationNameFromArchiveName(org.glassfish.api.deployment.archive.ReadableArchive archive) |
Manifest |
getManifest(org.glassfish.api.deployment.archive.ReadableArchive archive)
Returns the manifest file for this archive, this file is usually located at
the META-INF/MANIFEST location, however, certain archive type can change this
default location or use another mean of expressing manifest information.
|
String |
getVersionIdentifier(org.glassfish.api.deployment.archive.ReadableArchive archive)
Returns the default value for versionIdentifier.
|
boolean |
requiresAnnotationScanning(org.glassfish.api.deployment.archive.ReadableArchive archive)
Returns whether this archive requires annotation scanning.
|
public void expand(org.glassfish.api.deployment.archive.ReadableArchive source,
org.glassfish.api.deployment.archive.WritableArchive target,
org.glassfish.api.deployment.DeploymentContext context)
throws IOException
expand in interface org.glassfish.api.deployment.archive.ArchiveHandlersource - of the expandingtarget - of the expandingcontext - deployment contextIOException - when the archive is corruptedpublic String getDefaultApplicationName(org.glassfish.api.deployment.archive.ReadableArchive archive, org.glassfish.api.deployment.DeploymentContext context)
This default implementation returns the name portion of the archive's URI. The archive's name depends on the type of archive (FileArchive vs. JarArchive vs. MemoryMappedArchive, for example).
A concrete subclass can override this method to provide an alternative way of deriving the default application name.
getDefaultApplicationName in interface org.glassfish.api.deployment.archive.ArchiveHandlerarchive - the archive for which the default name is neededcontext - deployment contextpublic String getDefaultApplicationNameFromArchiveName(org.glassfish.api.deployment.archive.ReadableArchive archive)
public String getDefaultApplicationName(org.glassfish.api.deployment.archive.ReadableArchive archive)
getDefaultApplicationName in interface org.glassfish.api.deployment.archive.ArchiveHandlerpublic String getVersionIdentifier(org.glassfish.api.deployment.archive.ReadableArchive archive)
getVersionIdentifier in interface org.glassfish.api.deployment.archive.ArchiveHandlerpublic Manifest getManifest(org.glassfish.api.deployment.archive.ReadableArchive archive) throws IOException
getManifest in interface org.glassfish.api.deployment.archive.ArchiveHandlerarchive - fileIOExceptionpublic List<URI> getClassPathURIs(org.glassfish.api.deployment.archive.ReadableArchive archive)
getClassPathURIs in interface org.glassfish.api.deployment.archive.ArchiveHandlerarchive - filepublic boolean requiresAnnotationScanning(org.glassfish.api.deployment.archive.ReadableArchive archive)
requiresAnnotationScanning in interface org.glassfish.api.deployment.archive.ArchiveHandlerarchive - fileCopyright © 2017–2020 Eclipse Foundation. All rights reserved.