org.directwebremoting.servlet
Class DojoModule

java.lang.Object
  extended by org.directwebremoting.servlet.BaseModule
      extended by 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 org.directwebremoting.servlet.BaseModule
addContent, expandModulePath, expandModulePath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 baseModulePaths
servletPath - used for variable expansion in baseModulePaths
baseModulePath - baseModulePath for module itself (dojo.provide)
moduleName - module name for module itself (dojo.provide)
Method Detail

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

Copyright ยจ 2008