|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.util.JModule
public class JModule
This class implements utility methods for the manipulation of application modules.
Field Summary | |
---|---|
static String |
CONF_DIR
name of the directory containig configuration. |
static String |
DEPLOY_DIR
|
static String |
EAR_CHILD_DIR
|
static String |
EAR_CONFIRM_FILE
|
static String |
EAR_EXTENSION
|
static String |
EJBJAR_CHILD_DIR
Child directory of a expanded container. |
static String |
EJBJAR_CONFIRM_FILE
xml file in a child directory of a expanded container. |
static String |
EJBJAR_EXTENSION
file extension containing the different module types. |
static String |
JONAS_BASE
|
static String |
PROPS_EXTENSION
properties file extension. |
static String |
RAR_CHILD_DIR
|
static String |
RAR_CONFIRM_FILE
|
static String |
RAR_EXTENSION
|
static String |
WAR_CHILD_DIR
|
static String |
WAR_CONFIRM_FILE
|
static String |
WAR_EXTENSION
|
Constructor Summary | |
---|---|
JModule()
|
Method Summary | |
---|---|
static ArrayList<String> |
getDatasourcePropsInDir()
|
static ArrayList<String> |
getFilesInDir(String dirName,
String extension)
|
static ArrayList<String> |
getInstalledContainersInDir(String dirName,
String extension)
Return the list of all installed modules/apps in a directory. |
static ArrayList<String> |
getInstalledContainersInDir(String p_DirName,
String p_Extension,
String p_DirChildConfirm,
String p_FileConfirm)
Return the list of all installed containers in a directory. |
static ArrayList<URL> |
getInstalledFileInDir(String dirName,
String extension)
Return the URL list of files (possibly directories) having a given extension located in a given directory. |
static ArrayList<String> |
getMailFactoryPropsInDir()
|
static ArrayList<String> |
getMailFactoryPropsInDir(String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EJBJAR_EXTENSION
public static final String RAR_EXTENSION
public static final String WAR_EXTENSION
public static final String EAR_EXTENSION
public static final String EJBJAR_CHILD_DIR
public static final String RAR_CHILD_DIR
public static final String WAR_CHILD_DIR
public static final String EAR_CHILD_DIR
public static final String EJBJAR_CONFIRM_FILE
public static final String RAR_CONFIRM_FILE
public static final String WAR_CONFIRM_FILE
public static final String EAR_CONFIRM_FILE
public static final String JONAS_BASE
public static final String DEPLOY_DIR
public static final String PROPS_EXTENSION
public static final String CONF_DIR
Constructor Detail |
---|
public JModule()
Method Detail |
---|
public static ArrayList<String> getFilesInDir(String dirName, String extension) throws Exception
Exception
public static ArrayList<String> getDatasourcePropsInDir() throws Exception
Exception
public static ArrayList<String> getMailFactoryPropsInDir(String type) throws Exception
Exception
public static ArrayList<String> getMailFactoryPropsInDir() throws Exception
Exception
public static ArrayList<URL> getInstalledFileInDir(String dirName, String extension) throws MalformedURLException, IOException
dirName
- name of the directory to lookupextension
- extension to check
MalformedURLException
- If the path cannot be parsed as a URL
IOException
- If an I/O error occurs, which is possible because the
construction of the canonical pathname may require
file system queriespublic static ArrayList<String> getInstalledContainersInDir(String p_DirName, String p_Extension, String p_DirChildConfirm, String p_FileConfirm) throws Exception
p_DirName
- The name of the directory to findp_Extension
- The extension of container (jar, war, ear, rar)p_DirChildConfirm
- The child directory that confirm the containerp_FileConfirm
- The xml file inside the child directory that confirm the container
Exception
public static ArrayList<String> getInstalledContainersInDir(String dirName, String extension) throws Exception
dirName
- The name of the directory to findextension
- The extension of container (jar, war, ear, rar)
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |