| java.lang.Object org.objectweb.jonas.common.JModule
JModule | public class JModule (Code) | | This class implements utility methods for the manipulation of application modules
author: Adriana Danes |
CONF_DIR | final public static String CONF_DIR(Code) | | name of the directory containig configuration
|
EAR_CONFIRM_FILE | final public static String EAR_CONFIRM_FILE(Code) | | |
EJBJAR_CHILD_DIR | final public static String EJBJAR_CHILD_DIR(Code) | | Child directory of a expanded container
|
EJBJAR_CONFIRM_FILE | final public static String EJBJAR_CONFIRM_FILE(Code) | | xml file in a child directory of a expanded container
|
EJBJAR_EXTENSION | final public static String EJBJAR_EXTENSION(Code) | | file extension containing the different module types
|
PROPS_EXTENSION | final public static String PROPS_EXTENSION(Code) | | properties file extension
|
RAR_CONFIRM_FILE | final public static String RAR_CONFIRM_FILE(Code) | | |
WAR_CONFIRM_FILE | final public static String WAR_CONFIRM_FILE(Code) | | |
getInstalledContainersInDir | public static ArrayList getInstalledContainersInDir(String p_DirName, String p_Extension, String p_DirChildConfirm, String p_FileConfirm) throws Exception(Code) | | 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 Parameters: p_Extension - The extension of container (jar, war, ear, rar) Parameters: p_DirChildConfirm - The child directory that confirm the container Parameters: p_FileConfirm - The xml file inside the child directory that confirm the container A list of absolute path container throws: Exception - |
|
|