|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.deployment.plugin.ConfigIDExtractor
public class ConfigIDExtractor
Knows how to suck a Config ID out of a module and/or plan
| Constructor Summary | |
|---|---|
ConfigIDExtractor()
|
|
| Method Summary | |
|---|---|
static String |
extractModuleIdFromArchive(File module)
Attempt to calculate the Geronimo ModuleID for a J2EE application module. |
static String |
extractModuleIdFromPlan(File plan)
Attempt to calculate the Geronimo ModuleID for a Geronimo deployment plan. |
static Collection |
identifyTargetModuleIDs(TargetModuleID[] allModules,
String name,
boolean fromPlan)
Given a list of all available TargetModuleIDs and the name of a module, find the TargetModuleIDs that represent that module. |
static boolean |
isJarFile(File file)
Deprecated. See org.apache.geronimo.common.FileUtils.isJarFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigIDExtractor()
| Method Detail |
|---|
public static String extractModuleIdFromArchive(File module)
throws IOException,
DeploymentException
module - A Jar file or directory representing a J2EE module
IOException
DeploymentException
public static String extractModuleIdFromPlan(File plan)
throws IOException
plan - A Geronimo deployment plan (which must be an XML file).
IOException
public static Collection identifyTargetModuleIDs(TargetModuleID[] allModules,
String name,
boolean fromPlan)
throws DeploymentException
allModules - The list of all available modulesname - The module name to search forfromPlan - Should be true if the module name was loaded from a
deployment plan (thus no group means the default
group) or false if the module name was provided by
the user (thus no group means any group).
DeploymentException - If no TargetModuleIDs have that module.
public static boolean isJarFile(File file)
throws DeploymentException
DeploymentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||