org.apache.geronimo.j2ee.deployment
Class WebModule
java.lang.Object
org.apache.geronimo.j2ee.deployment.Module
org.apache.geronimo.j2ee.deployment.WebModule
public class WebModule
- extends Module
Constructor Summary |
WebModule(boolean standAlone,
AbstractName moduleName,
Environment environment,
JarFile moduleFile,
String targetPath,
org.apache.xmlbeans.XmlObject specDD,
org.apache.xmlbeans.XmlObject vendorDD,
String originalSpecDD,
String contextRoot,
String namespace,
AnnotatedWebApp annotatedWebApp)
|
Methods inherited from class org.apache.geronimo.j2ee.deployment.Module |
close, equals, getAnnotatedApp, getClassFinder, getConfigId, getEarContext, getEnvironment, getModuleFile, getModuleName, getModuleURI, getName, getNamespace, getOriginalSpecDD, getRootEarContext, getSharedContext, getSpecDD, getTargetPath, getTargetPathURI, getVendorDD, hashCode, isStandAlone, setAnnotatedApp, setClassFinder, setEarContext, setOriginalSpecDD, setRootEarContext, setSpecDD |
WEB_APP_DATA
public static final String WEB_APP_DATA
- See Also:
- Constant Field Values
WebModule
public WebModule(boolean standAlone,
AbstractName moduleName,
Environment environment,
JarFile moduleFile,
String targetPath,
org.apache.xmlbeans.XmlObject specDD,
org.apache.xmlbeans.XmlObject vendorDD,
String originalSpecDD,
String contextRoot,
String namespace,
AnnotatedWebApp annotatedWebApp)
getContextRoot
public String getContextRoot()
getType
public ConfigurationModuleType getType()
- Specified by:
getType
in class Module
getRelativePath
public String getRelativePath(String path)
- Description copied from class:
Module
- Given a path in the ear module, return something that will resolve to that location against the eventual configuration
base uri. Currently for all modules except wars that is the original path. If we create separate configurations for
ejb or rar modules, those Module subclasses will need to reimplement this method.
Example: if a war is myweb.war, and you pass in myweb.war/WEB-INF/lib/foo.jar, you get WEB-INF/lib/foo.jar
if you pass in myFoo.jar, you get ../myFoo.jar
- Overrides:
getRelativePath
in class Module
- Parameters:
path
- a path in the ear config, relative to the ear root.
- Returns:
- a path to the same location, but relative to the configuration this module represents' base uri.
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.