org.objectweb.jonas_ear.deployment.lib
Class EarDeploymentDescManager

java.lang.Object
  extended byorg.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager
      extended byorg.objectweb.jonas_ear.deployment.lib.EarDeploymentDescManager
All Implemented Interfaces:
DeploymentDescManager

public class EarDeploymentDescManager
extends AbsDeploymentDescManager

This class extends the AbsDeploymentDescriptor class of JOnAS It provides a description of the specific EAR desployment descriptor

Author:
Florent Benoit, Ludovic Bert, Helene Joanin

Field Summary
 
Fields inherited from class org.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager
LINK_SEPARATOR
 
Method Summary
static EarDeploymentDesc getDeploymentDesc(java.lang.String earFileName, java.lang.ClassLoader classLoaderForCls)
          Get an instance of an EAR deployment descriptor by parsing the application.xml deployment descriptor.
static boolean getParsingWithValidation()
          Controls whether the parser is reporting all validity errors.
static Application loadApplication(java.io.Reader reader, java.lang.String fileName)
          Load the application.xml file.
static void setParsingWithValidation(boolean validation)
          Controls whether the parser is reporting all validity errors.
 
Methods inherited from class org.objectweb.jonas_lib.deployment.lib.AbsDeploymentDescManager
xmlContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDeploymentDesc

public static EarDeploymentDesc getDeploymentDesc(java.lang.String earFileName,
                                                  java.lang.ClassLoader classLoaderForCls)
                                           throws EarDeploymentDescException
Get an instance of an EAR deployment descriptor by parsing the application.xml deployment descriptor.

Parameters:
earFileName - the fileName of the war file for the deployment descriptors.
classLoaderForCls - the classloader for the classes.
Returns:
an EAR deployment descriptor by parsing the application.xml deployment descriptor.
Throws:
EarDeploymentDescException - if the deployment descriptor is corrupted.

loadApplication

public static Application loadApplication(java.io.Reader reader,
                                          java.lang.String fileName)
                                   throws EarDeploymentDescException
Load the application.xml file.

Parameters:
reader - the Reader of the XML file.
fileName - the name of the file (application.xml).
Returns:
an application object.
Throws:
EarDeploymentDescException - if the deployment descriptor is corrupted.

getParsingWithValidation

public static boolean getParsingWithValidation()
Controls whether the parser is reporting all validity errors.

Returns:
if true, all external entities will be read.

setParsingWithValidation

public static void setParsingWithValidation(boolean validation)
Controls whether the parser is reporting all validity errors.

Parameters:
validation - if true, all external entities will be read.