public class DojoWidgetsDependencyRule extends DojoDependencyRule
This DojoDependencyRule is used to detect Dojo dependencies that are defined within JavaScript source files
as JSON arrays of JSON objects. This rule will detect dependencies that are not explicitly declared through a "define"
function call but that will be dynamically requested at runtime.
| Constructor and Description |
|---|
DojoWidgetsDependencyRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
processRegexRules(String filePath,
String fileContents,
DojoDependencies dependencies)
Overrides the default implementation to recurse over the group returned by the main declaration regular expression.
|
addJavaScriptDependency, addNonAmdJavaScriptDependency, getDeclarationRegex, getDeclarationRegexPattern, getDependencyHandler, getDependencyRegex, getDependencyRegexPattern, getDojoDependencyHandler, getTargetGroup, getTokens, processDependency, replaceTokens, setDeclarationRegex, setDependencyHandler, setDependencyRegex, setDojoDependencyHandler, setTargetGroupprotected void processRegexRules(String filePath, String fileContents, DojoDependencies dependencies)
Overrides the default implementation to recurse over the group returned by the main declaration regular expression. This is required because each JSON object that defined a widget can itself declare an array of dependencies.
processRegexRules in class DojoDependencyRulefilePath - The path of the dependency that has been requested.fileContents - The current modified file contentsdependencies - DojoDependenciesCopyright © 2005–2016 Alfresco Software. All rights reserved.