org.objectweb.jonas.common.JModule Class Reference

List of all members.

Static Public Member Functions

ArrayList getInstalledContainersInDir (String p_DirName, String p_Extension, String p_DirChildConfirm, String p_FileConfirm) throws Exception

Static Public Attributes

final String EJBJAR_EXTENSION = "jar"
final String EJBJAR_CHILD_DIR = "META-INF"
final String EJBJAR_CONFIRM_FILE = "ejb-jar.xml"
final String PROPS_EXTENSION = "properties"
final String CONF_DIR = "conf"

Detailed Description

This class implements utility methods for the manipulation of application modules
Author:
Adriana Danes

Definition at line 39 of file JModule.java.


Member Function Documentation

ArrayList org.objectweb.jonas.common.JModule.getInstalledContainersInDir String  p_DirName,
String  p_Extension,
String  p_DirChildConfirm,
String  p_FileConfirm
throws Exception [static]
 

Return the list of all installed containers in a directory. The container may be :

  • a archive file container with a known extension : jar, war, ear, rar
  • a directory where the container is expanded
    To control if a directory contains a expanded container, it's necessary to provide the child directory and the xml file that confirm the expanded container.
    Parameter example to retrieve :
  • web application : war, WEB-INF, web.xml
  • application : ear, META-INF, application.xml
  • ejb container : jar, META-INF, ejb-jar.xml
  • resource : rar, META-INF, ra.xml

Parameters:
p_DirName The name of the directory to find
p_Extension The extension of container (jar, war, ear, rar)
p_DirChildConfirm The child directory that confirm the container
p_FileConfirm The xml file inside the child directory that confirm the container
Returns:
A list of absolute path container
Exceptions:
Exception 

Definition at line 219 of file JModule.java.


Member Data Documentation

final String org.objectweb.jonas.common.JModule.CONF_DIR = "conf" [static]
 

name of the directory containig configuration

Definition at line 73 of file JModule.java.

final String org.objectweb.jonas.common.JModule.EJBJAR_CHILD_DIR = "META-INF" [static]
 

Child directory of a expanded container

Definition at line 51 of file JModule.java.

final String org.objectweb.jonas.common.JModule.EJBJAR_CONFIRM_FILE = "ejb-jar.xml" [static]
 

xml file in a child directory of a expanded container

Definition at line 59 of file JModule.java.

final String org.objectweb.jonas.common.JModule.EJBJAR_EXTENSION = "jar" [static]
 

file extension containing the different module types

Definition at line 43 of file JModule.java.

final String org.objectweb.jonas.common.JModule.PROPS_EXTENSION = "properties" [static]
 

properties file extension

Definition at line 67 of file JModule.java.


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