org.directwebremoting.servlet
Class AmdModule
java.lang.Object
org.directwebremoting.servlet.BaseModule
org.directwebremoting.servlet.AmdModule
public class AmdModule
- extends BaseModule
A class that abstracts the generation of AMD script modules.
- Author:
- Mike Wilson [mikewse at hotmail dot com]
|
Constructor Summary |
AmdModule(java.lang.String contextPath,
java.lang.String servletPath)
Constructor. |
|
Method Summary |
void |
addDependency(java.lang.String baseModulePath,
java.lang.String moduleName,
java.lang.String parameterName)
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 |
AmdModule
public AmdModule(java.lang.String contextPath,
java.lang.String servletPath)
- Constructor. Path parameters are supplied for expanding path variables in
module paths.
- Parameters:
contextPath - servletPath -
addDependency
public void addDependency(java.lang.String baseModulePath,
java.lang.String moduleName,
java.lang.String parameterName)
- 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 (dots a.b will be
converted to slashes)parameterName - the name of the dependency's parameter in
the script function
toString
public java.lang.String toString()
- Generates the module text
- Overrides:
toString in class java.lang.Object