org.directwebremoting.servlet
Class DojoModule
java.lang.Object
org.directwebremoting.servlet.BaseModule
org.directwebremoting.servlet.DojoModule
public class DojoModule
- extends BaseModule
A class that abstracts the generation of Dojo script modules.
- Author:
- Mike Wilson [mikewse at hotmail dot com]
|
Constructor Summary |
DojoModule(java.lang.String contextPath,
java.lang.String servletPath,
java.lang.String baseModulePath,
java.lang.String moduleName)
Constructor. |
|
Method Summary |
void |
addRequire(java.lang.String baseModulePath,
java.lang.String moduleName)
Add a module that this module is dependent upon. |
java.lang.String |
toString()
Generates the module text |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DojoModule
public DojoModule(java.lang.String contextPath,
java.lang.String servletPath,
java.lang.String baseModulePath,
java.lang.String moduleName)
- Constructor.
- Parameters:
contextPath - used for variable expansion in baseModulePathsservletPath - used for variable expansion in baseModulePathsbaseModulePath - baseModulePath for module itself (dojo.provide)moduleName - module name for module itself (dojo.provide)
addRequire
public void addRequire(java.lang.String baseModulePath,
java.lang.String moduleName)
- Add a module that this module is dependent upon.
- Parameters:
baseModulePath - the module root that should be added to
the module name (may be empty, may be absolute or relative and
may contain path variables ${contextPath} and ${servletPath})moduleName - the module name, f ex a.b
toString
public java.lang.String toString()
- Generates the module text
- Overrides:
toString in class java.lang.Object