org.apache.geronimo.j2ee.deployment
Class WebModule

java.lang.Object
  extended by org.apache.geronimo.j2ee.deployment.Module
      extended by org.apache.geronimo.j2ee.deployment.WebModule

public class WebModule
extends Module


Field Summary
static String WEB_APP_DATA
           
 
Fields inherited from class org.apache.geronimo.j2ee.deployment.Module
sharedContext
 
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)
           
 
Method Summary
 String getContextRoot()
           
 String getRelativePath(String path)
          Given a path in the ear module, return something that will resolve to that location against the eventual configuration base uri.
 ConfigurationModuleType getType()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_APP_DATA

public static final String WEB_APP_DATA
See Also:
Constant Field Values
Constructor Detail

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)
Method Detail

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.