com.sun.enterprise.module.common_impl
Class Jar

java.lang.Object
  extended by com.sun.enterprise.module.common_impl.Jar

public abstract class Jar
extends Object

Abstraction of JarFile so that we can handle both a jar file and a directory image transparently.

Author:
Kohsuke Kawaguchi

Constructor Summary
protected Jar()
           
 
Method Summary
static Jar create(File file)
           
abstract  String getBaseName()
          Gets the base name of the jar.
abstract  Manifest getManifest()
          See JarFile.getManifest() for the contract.
abstract  void loadMetadata(ModuleMetadata result)
          Loads all META-INF/habitats entries and store them to the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jar

protected Jar()
Method Detail

getManifest

public abstract Manifest getManifest()
                              throws IOException
See JarFile.getManifest() for the contract.

Throws:
IOException

loadMetadata

public abstract void loadMetadata(ModuleMetadata result)
Loads all META-INF/habitats entries and store them to the list.


getBaseName

public abstract String getBaseName()
Gets the base name of the jar.

For example, "bar" for "bar.jar".


create

public static Jar create(File file)
                  throws IOException
Throws:
IOException


Copyright © 2013 Oracle Corporation. All Rights Reserved.