summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/builder.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-09-06 15:27:06 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-10-16 18:08:17 +0200
commitefafd7fe871bc368b91db78bb132abb027141a24 (patch)
treef6d71bae937e31c7090828382af8b404b1ce7e1f /install/ui/src/freeipa/builder.js
parent3fa304d95ec59efe0eb1cb8241d88a173802b172 (diff)
downloadfreeipa-efafd7fe871bc368b91db78bb132abb027141a24.tar.gz
freeipa-efafd7fe871bc368b91db78bb132abb027141a24.tar.xz
freeipa-efafd7fe871bc368b91db78bb132abb027141a24.zip
Web UI source code annotation
Part of ongoing Web UI documentation effort. Source code is annotated in a way that it can be processed by documentation generator.
Diffstat (limited to 'install/ui/src/freeipa/builder.js')
-rw-r--r--install/ui/src/freeipa/builder.js28
1 files changed, 17 insertions, 11 deletions
diff --git a/install/ui/src/freeipa/builder.js b/install/ui/src/freeipa/builder.js
index 0a8c39921..6d2086917 100644
--- a/install/ui/src/freeipa/builder.js
+++ b/install/ui/src/freeipa/builder.js
@@ -18,12 +18,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/**
- * Global builder interface.
- *
- * Contains a map of builders for a specific object type.
- *
- */
define(['dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/lang',
@@ -34,13 +28,25 @@ define(['dojo/_base/declare',
var builder_registry = new Singleton_registry();
builder_registry.builder.ctor = Builder;
+ /**
+ * Global builder interface.
+ *
+ * Contains a map of builders for a specific object type.
+ *
+ * @class builder
+ * @singleton
+ */
var exp = {
+ /**
+ * Registry of builders
+ * @property {_base.Singleton_registry}
+ */
builders: builder_registry,
/**
* Get builder for object type
*
- * @param {String} object type
+ * @param {string} object type
*/
get: function(obj_type) {
return this.builders.get(obj_type);
@@ -49,8 +55,8 @@ define(['dojo/_base/declare',
/**
* Set builder for object type.
*
- * @param {String} object type
- * @param {Builder} builder
+ * @param {string} object type
+ * @param {_base.Builder} builder
*/
set: function(obj_type, builder) {
this.builders.set(obj_type, builder);
@@ -59,8 +65,8 @@ define(['dojo/_base/declare',
/**
* Build object by builder for given object type.
*
- * @param {String} object type. Uses generic builder if empty string.
- * @param {String|Object|Function} spec
+ * @param {string} object type. Uses generic builder if empty string.
+ * @param {string|Object|Function} spec
* @param {Object|null} context
* @param {Object|null} build overrides
*/