org.objectweb.jonas_lib.genbase.modifier
Class AbsModifierFactory

java.lang.Object
  extended by org.objectweb.jonas_lib.genbase.modifier.AbsModifierFactory
Direct Known Subclasses:
ModifierFactory, ModifierFactory

public abstract class AbsModifierFactory
extends java.lang.Object

Used to create the right ArchiveModifier from a given filename (ear, jar, war, ...)

Author:
Guillaume Sauthier, Florent Benoit (make common class for client stubs and WsGen)

Field Summary
static int APPLICATION
          Application Archive mode
static int CLIENT
          ApplicationClient Archive mode
static int EJBJAR
          EjbJar Archive mode
static int WEBAPP
          WebApp Archive mode
 
Constructor Summary
protected AbsModifierFactory()
          Utility class (no default public constructor)
 
Method Summary
protected static boolean isApplication(java.io.File f)
          returns true if the file is an Application archive.
protected static boolean isApplication(java.util.jar.JarFile jf)
          returns true if the file is an Application archive.
protected static boolean isClient(java.io.File f)
          returns true if the file is a Client archive.
protected static boolean isClient(java.util.jar.JarFile jf)
          returns true if the file is a Client archive.
protected static boolean isEjbJar(java.io.File f)
          returns true if the file is an EjbJar archive.
protected static boolean isEjbJar(java.util.jar.JarFile jf)
          returns true if the file is an EjbJar archive.
protected static boolean isWebApp(java.io.File f)
          returns true if the file is a WebApp archive.
protected static boolean isWebApp(java.util.jar.JarFile jf)
          returns true if the file is a WebApp archive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION

public static final int APPLICATION
Application Archive mode

See Also:
Constant Field Values

EJBJAR

public static final int EJBJAR
EjbJar Archive mode

See Also:
Constant Field Values

WEBAPP

public static final int WEBAPP
WebApp Archive mode

See Also:
Constant Field Values

CLIENT

public static final int CLIENT
ApplicationClient Archive mode

See Also:
Constant Field Values
Constructor Detail

AbsModifierFactory

protected AbsModifierFactory()
Utility class (no default public constructor)

Method Detail

isApplication

protected static boolean isApplication(java.util.jar.JarFile jf)
returns true if the file is an Application archive.

Parameters:
jf - JarFile to explore.
Returns:
true if the file is an Application archive.

isEjbJar

protected static boolean isEjbJar(java.util.jar.JarFile jf)
returns true if the file is an EjbJar archive.

Parameters:
jf - JarFile to explore.
Returns:
true if the file is an EjbJar archive.

isWebApp

protected static boolean isWebApp(java.util.jar.JarFile jf)
returns true if the file is a WebApp archive.

Parameters:
jf - JarFile to explore.
Returns:
true if the file is a WebApp archive.

isClient

protected static boolean isClient(java.util.jar.JarFile jf)
returns true if the file is a Client archive.

Parameters:
jf - JarFile to explore.
Returns:
true if the file is a Client archive.

isApplication

protected static boolean isApplication(java.io.File f)
returns true if the file is an Application archive.

Parameters:
f - Directory to explore.
Returns:
true if the file is an Application archive.

isEjbJar

protected static boolean isEjbJar(java.io.File f)
returns true if the file is an EjbJar archive.

Parameters:
f - Directory to explore.
Returns:
true if the file is an EjbJar archive.

isWebApp

protected static boolean isWebApp(java.io.File f)
returns true if the file is a WebApp archive.

Parameters:
f - Directory to explore.
Returns:
true if the file is a WebApp archive.

isClient

protected static boolean isClient(java.io.File f)
returns true if the file is a Client archive.

Parameters:
f - Directory to explore.
Returns:
true if the file is a Client archive.