org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager Class Reference

List of all members.

Static Public Member Functions

RarDeploymentDesc getInstance (String rarFileName, ClassLoader classLoader) throws DeploymentDescException
RarDeploymentDesc getInstance (Context ctx) throws DeploymentDescException
Connector loadConnector (Reader reader, String fileName) throws DeploymentDescException
JonasConnector loadJonasConnector (Reader reader, String fileName) throws DeploymentDescException
boolean getParsingWithValidation ()
void setParsingWithValidation (boolean validation)

Static Public Attributes

final String RA_FILE_NAME = "META-INF/ra.xml"
final String JONAS_RA_FILE_NAME = "META-INF/jonas-ra.xml"

Detailed Description

Manage Rar deployment descriptors
Author:
Guillaume Sauthier

Definition at line 62 of file RarDeploymentDescManager.java.


Member Function Documentation

RarDeploymentDesc org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.getInstance Context  ctx  )  throws DeploymentDescException [static]
 

Get an instance of an RAR deployment descriptor by parsing the ra.xml and jonas-ra.xml deployment descriptors.

Parameters:
ctx the context which contains the configuration in order to load the deployment descriptors. There are 6 possible parameters : - rarFileName is the path of the RAR file (required param). - classLoader is the classloader (required param) - altDD is the optional deployment descriptor (optional param).
Returns:
an RAR deployment descriptor by parsing the ra.xml(or altdd) & jonas-ra.xml deployment descriptors.
Exceptions:
DeploymentDescException if the deployment descriptors are corrupted.

Definition at line 156 of file RarDeploymentDescManager.java.

References org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.JONAS_RA_FILE_NAME, org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.loadConnector(), org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.loadJonasConnector(), org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.RA_FILE_NAME, org.objectweb.jonas_rar.deployment.api.RarDeploymentDesc.setJOnASXmlContent(), and org.objectweb.jonas_rar.deployment.api.RarDeploymentDesc.setXmlContent().

Here is the call graph for this function:

RarDeploymentDesc org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.getInstance String  rarFileName,
ClassLoader  classLoader
throws DeploymentDescException [static]
 

Get an instance of an RAR deployment descriptor by parsing the ra.xml and jonas-ra.xml deployment descriptors.

Parameters:
rarFileName the fileName of the rar file for the deployment descriptors.
classLoader the classloader for the classes.
Returns:
an RAR deployment descriptor by parsing the ra.xml & jonas-ra.xml deployment descriptors.
Exceptions:
DeploymentDescException if the deployment descriptors are corrupted.

Definition at line 121 of file RarDeploymentDescManager.java.

boolean org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.getParsingWithValidation  )  [static]
 

Controls whether the parser is reporting all validity errors.

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

Definition at line 366 of file RarDeploymentDescManager.java.

Connector org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.loadConnector Reader  reader,
String  fileName
throws DeploymentDescException [static]
 

Load the ra.xml file.

Parameters:
reader the Reader of the XML file.
fileName the name of the file (ra.xml).
Exceptions:
DeploymentDescException if the deployment descriptor is corrupted.
Returns:
a connector object.

Definition at line 314 of file RarDeploymentDescManager.java.

References org.objectweb.jonas_lib.deployment.digester.JDigester.parse().

Referenced by org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.getInstance().

Here is the call graph for this function:

JonasConnector org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.loadJonasConnector Reader  reader,
String  fileName
throws DeploymentDescException [static]
 

Load the jonas-ra.xml file.

Parameters:
reader the Reader of the XML file.
fileName the name of the file (jonas-ra.xml).
Exceptions:
DeploymentDescException if the deployment descriptor is corrupted.
Returns:
a JonasConnector object.

Definition at line 342 of file RarDeploymentDescManager.java.

References org.objectweb.jonas_lib.deployment.digester.JDigester.parse().

Referenced by org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.getInstance().

Here is the call graph for this function:

void org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.setParsingWithValidation boolean  validation  )  [static]
 

Controls whether the parser is reporting all validity errors.

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

Definition at line 374 of file RarDeploymentDescManager.java.


Member Data Documentation

final String org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.JONAS_RA_FILE_NAME = "META-INF/jonas-ra.xml" [static]
 

Path of the jonas-ra.xml deploymnet descriptor file

Definition at line 72 of file RarDeploymentDescManager.java.

Referenced by org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.getInstance().

final String org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.RA_FILE_NAME = "META-INF/ra.xml" [static]
 

Path of the ra.xml deploymnet descriptor file

Definition at line 67 of file RarDeploymentDescManager.java.

Referenced by org.objectweb.jonas_rar.deployment.lib.RarDeploymentDescManager.getInstance().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:18 2005 for JOnAS by  doxygen 1.3.9.1