Class Jar
- java.lang.Object
-
- com.sun.enterprise.module.common_impl.Jar
-
- Direct Known Subclasses:
Jar.Archive
,Jar.Directory
public abstract class Jar extends java.lang.Object
Abstraction ofJarFile
so that we can handle both a jar file and a directory image transparently.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Jar.Archive
private static class
Jar.Directory
-
Constructor Summary
Constructors Modifier Constructor Description protected
Jar()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Jar
create(java.io.File file)
abstract java.lang.String
getBaseName()
Gets the base name of the jar.abstract java.util.jar.Manifest
getManifest()
SeeJarFile.getManifest()
for the contract.abstract void
loadMetadata(ModuleMetadata result)
Loads all META-INF/habitats entries and store them to the list.
-
-
-
Method Detail
-
getManifest
public abstract java.util.jar.Manifest getManifest() throws java.io.IOException
SeeJarFile.getManifest()
for the contract.- Throws:
java.io.IOException
-
loadMetadata
public abstract void loadMetadata(ModuleMetadata result)
Loads all META-INF/habitats entries and store them to the list.
-
getBaseName
public abstract java.lang.String getBaseName()
Gets the base name of the jar.For example, "bar" for "bar.jar".
-
create
public static Jar create(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
-