| java.lang.Object org.apache.geronimo.deployment.plugin.ConfigIDExtractor
ConfigIDExtractor | public class ConfigIDExtractor (Code) | | Knows how to suck a Config ID out of a module and/or plan
version: $Rev: 549455 $ $Date: 2007-06-21 05:12:27 -0700 (Thu, 21 Jun 2007) $ |
Method Summary | |
public static String | extractModuleIdFromArchive(File module) Attempt to calculate the Geronimo ModuleID for a J2EE application
module. | public static String | extractModuleIdFromPlan(File plan) Attempt to calculate the Geronimo ModuleID for a Geronimo deployment
plan.
Parameters: plan - A Geronimo deployment plan (which must be an XML file). | public 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. | public static boolean | isJarFile(File file) Try to determine whether a file is a JAR File (or, at least, a ZIP file). |
extractModuleIdFromArchive | public static String extractModuleIdFromArchive(File module) throws IOException, DeploymentException(Code) | | Attempt to calculate the Geronimo ModuleID for a J2EE application
module.
Given a File representing an archive (which may be a JAR file or a
directory laid out like a JAR file), identify it's J2EE module type
based on which (if any) deployment descriptor is present, and then look
for a Geronimo deployment plan in the usual place, and if one is found,
retrieve the configId from the Geronimo deployment plan.
todo: Handle Spring and other weird deployment types?
Parameters: module - A Jar file or directory representing a J2EE module The configId in the Geronimo deployment plan for this module,or null if no Geronimo deployment plan was identified. |
extractModuleIdFromPlan | public static String extractModuleIdFromPlan(File plan) throws IOException(Code) | | Attempt to calculate the Geronimo ModuleID for a Geronimo deployment
plan.
Parameters: plan - A Geronimo deployment plan (which must be an XML file). The configId in the Geronimo deployment plan for this module. |
identifyTargetModuleIDs | public static Collection identifyTargetModuleIDs(TargetModuleID[] allModules, String name, boolean fromPlan) throws DeploymentException(Code) | | Given a list of all available TargetModuleIDs and the name of a module,
find the TargetModuleIDs that represent that module.
Parameters: allModules - The list of all available modules Parameters: name - The module name to search for Parameters: fromPlan - Should be true if the module name was loaded from adeployment plan (thus no group means the defaultgroup) or false if the module name was provided bythe user (thus no group means any group). throws: DeploymentException - If no TargetModuleIDs have that module. |
isJarFile | public static boolean isJarFile(File file) throws DeploymentException(Code) | | Try to determine whether a file is a JAR File (or, at least, a ZIP file).
|
|
|