public class AMDWrapper extends java.lang.Object
$
, the wrapper should be setup calling require("jQuery", "$")
on the respective wrapper.JavaScriptModuleConfiguration
,
ModuleManager
Constructor and Description |
---|
AMDWrapper(Resource resource) |
Modifier and Type | Method and Description |
---|---|
JavaScriptModuleConfiguration |
asJavaScriptModuleConfiguration()
Return this wrapper instance as a
JavaScriptModuleConfiguration ,
so it can be contributed to the ModuleManager 's configuration. |
AMDWrapper |
require(java.lang.String moduleName)
Add a dependency on another module.
|
AMDWrapper |
require(java.lang.String moduleName,
java.lang.String parameterName)
Add a dependency on another module.
|
AMDWrapper |
setReturnExpression(java.lang.String returnExpression)
Optionally sets a return expression for this module.
|
public AMDWrapper(Resource resource)
public AMDWrapper require(java.lang.String moduleName, java.lang.String parameterName)
moduleName
- the name of the required module, e.g. jQuery
parameterName
- the module's corresponding parameter name of the factory
function, e.g. $
public AMDWrapper require(java.lang.String moduleName)
moduleName
- the name of the required module, e.g.
bootstrap/transition
public AMDWrapper setReturnExpression(java.lang.String returnExpression)
returnExpression
- the expression that is returned from this module (e.g.
Raphael
)public JavaScriptModuleConfiguration asJavaScriptModuleConfiguration()
JavaScriptModuleConfiguration
,
so it can be contributed to the ModuleManager
's configuration.
The resulting JavaScriptModuleConfiguration
should not be
changed.JavaScriptModuleConfiguration
for this AMD wrapper${project.version} - Copyright © 2003-2015 The Apache Software Foundation.