[Framework] Initial skeletons for framework

Initial skeletons for framework classes, WTD-518.
This commit is contained in:
Victor Woeltjen
2014-10-31 13:15:05 -07:00
parent 83d06b6f8f
commit b55c6b8bce
3 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
/*global define*/
define(
[],
function () {
"use strict";
/**
* A bundle's plain JSON definition.
*
* @name BundleDefinition
* @property {string} name the human-readable name of this bundle
* @property {Object.<string,ExtensionDefinition[]>} [extensions={}]
* all extensions exposed by this bundle
*/
/**
* Instantiate a new reference to a bundle, based on its human-readable
* definition.
*
* @param {string} path the path to the directory containing
* this bundle
* @param {BundleDefinition} definition
* @returns {{getDefinition: Function}}
* @constructor
*/
function Bundle(path, definition) {
return {
/**
*
* @returns {BundleDefinition} the raw definition of this bundle
*/
getDefinition: function () {
return definition;
}
};
}
new Bundle().getDefinition().extensions['k'][0].
return Bundle;
}
);