|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.deployment.plugin.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(javax.enterprise.deploy.spi.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)
Try to determine whether a file is a JAR File (or, at least, a ZIP file). |
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, org.apache.geronimo.common.DeploymentException
module
- A Jar file or directory representing a J2EE module
IOException
org.apache.geronimo.common.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(javax.enterprise.deploy.spi.TargetModuleID[] allModules, String name, boolean fromPlan) throws org.apache.geronimo.common.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).
org.apache.geronimo.common.DeploymentException
- If no TargetModuleIDs have that module.public static boolean isJarFile(File file) throws org.apache.geronimo.common.DeploymentException
org.apache.geronimo.common.DeploymentException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |