org.ow2.jonas.deployment.ear.lib
Class EarDeploymentDescManager

java.lang.Object
  extended by org.ow2.jonas.deployment.common.lib.AbsDeploymentDescManager
      extended by org.ow2.jonas.deployment.ear.lib.EarDeploymentDescManager
All Implemented Interfaces:
DeploymentDescManager

public final 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
static String APPLICATION_FILE_NAME
          Path of the application.xml deploymnet descriptor file.
static String JONAS_APPLICATION_FILE_NAME
          Path of the jonas-application.xml deploymnet descriptor file.
 
Fields inherited from class org.ow2.jonas.deployment.common.lib.AbsDeploymentDescManager
LINK_SEPARATOR
 
Method Summary
static EarDeploymentDesc getDeploymentDesc(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable, 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(Reader reader, String fileName)
          Load the application.xml file.
static JonasApplication loadJonasApplication(Reader reader, String fileName)
          Load the jonas-application.xml file.
static void setParsingWithValidation(boolean validation)
          Controls whether the parser is reporting all validity errors.
 
Methods inherited from class org.ow2.jonas.deployment.common.lib.AbsDeploymentDescManager
containsResource, findJonasServiceRef, mergeWebServiceRef, xmlContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_FILE_NAME

public static final String APPLICATION_FILE_NAME
Path of the application.xml deploymnet descriptor file.

See Also:
Constant Field Values

JONAS_APPLICATION_FILE_NAME

public static final String JONAS_APPLICATION_FILE_NAME
Path of the jonas-application.xml deploymnet descriptor file.

See Also:
Constant Field Values
Method Detail

getDeploymentDesc

public static EarDeploymentDesc getDeploymentDesc(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
                                                  ClassLoader classLoaderForCls)
                                           throws EarDeploymentDescException
Get an instance of an EAR deployment descriptor by parsing the application.xml deployment descriptor.

Parameters:
earDeployable - the deployable to analyze.
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(Reader reader,
                                          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.

loadJonasApplication

public static JonasApplication loadJonasApplication(Reader reader,
                                                    String fileName)
                                             throws EarDeploymentDescException
Load the jonas-application.xml file.

Parameters:
reader - the stream of the XML file.
fileName - the name of the file (jonas-application.xml).
Returns:
a structure containing the result of the jonas-application.xml parsing.
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.


Copyright © 2010 OW2 Consortium. All Rights Reserved.