3.3.1.2. Declaring an AMD module

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

eXo Platform is capable of integrating native AMD (Asynchronous Module Definition) modules, and eXo Platform modules are currently translated into AMD modules. To further understand the AMD declaration, see the RequireJS documentation.

AMD modules follow the pattern as below:

define("module", ["dependency1",...,"dependencyN"],
 function(dep1,...,depN) {
});

eXo Platform can use such a module out of the box, however some parts will be overridden by the declaration in gatein-resources.xml:

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus