|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.internal.deployment.GenericHandler
public abstract class GenericHandler
Pretty generic implementation of some ArchiveHandler methods
| Field Summary | |
|---|---|
protected org.jvnet.hk2.component.Habitat |
habitat
|
| Constructor Summary | |
|---|---|
GenericHandler()
|
|
| Method Summary | |
|---|---|
void |
expand(ReadableArchive source,
WritableArchive target,
DeploymentContext context)
Prepares the jar file to a format the ApplicationContainer is expecting. |
String |
getDefaultApplicationName(ReadableArchive archive)
|
String |
getDefaultApplicationName(ReadableArchive archive,
DeploymentContext context)
Returns the default application name usable for identifying the archive. |
Manifest |
getManifest(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(ReadableArchive archive)
Returns the default value for versionIdentifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.api.deployment.archive.ArchiveHandler |
|---|
getArchiveType, getClassLoader, handles |
| Field Detail |
|---|
protected org.jvnet.hk2.component.Habitat habitat
| Constructor Detail |
|---|
public GenericHandler()
| Method Detail |
|---|
public void expand(ReadableArchive source,
WritableArchive target,
DeploymentContext context)
throws IOException
expand in interface ArchiveHandlersource - of the expandingtarget - of the expandingcontext - deployment context
IOException - when the archive is corrupted
public String getDefaultApplicationName(ReadableArchive archive,
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 ArchiveHandlerarchive - the archive for which the default name is neededcontext - deployment context
public String getDefaultApplicationName(ReadableArchive archive)
getDefaultApplicationName in interface ArchiveHandlerpublic String getVersionIdentifier(ReadableArchive archive)
getVersionIdentifier in interface ArchiveHandler
public Manifest getManifest(ReadableArchive archive)
throws IOException
getManifest in interface ArchiveHandlerarchive - file
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||