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.ObjectAbstraction ofJarFileso 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 classJar.Archiveprivate static classJar.Directory
-
Constructor Summary
Constructors Modifier Constructor Description protectedJar()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Jarcreate(java.io.File file)abstract java.lang.StringgetBaseName()Gets the base name of the jar.abstract java.util.jar.ManifestgetManifest()SeeJarFile.getManifest()for the contract.abstract voidloadMetadata(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.IOExceptionSeeJarFile.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
-
-