Class NodejsRequiredSourceModule

All Implemented Interfaces:
Module, ModuleEntry, SourceModule
Direct Known Subclasses:
NodejsRequiredCoreModule

public class NodejsRequiredSourceModule extends SourceFileModule
This class is intended to be used whenever a JavaScript module is dynamically required by JavaScript (CommonJS). The required file will be loaded and wrapped in a function call to simulate the real behavior of a CommonJS environment. The resulting function will be named GLOBAL_PREFIX + relative file-name. To retrieve the final function name, use getFunctioName().
Author:
Brian Pfretzschner <brian.pfretzschner@gmail.com>