Author: gotcha
Date: Sun Oct 26 12:03:36 2008
New Revision: 59412
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/interfaces.js
Log:
change wording : interface to registry
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/interfaces.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/interfaces.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/interfaces.js
Sun Oct 26 12:03:36 2008
@@ -15,7 +15,7 @@
* that results from these calls.
*
* In case of an action plugin, this is just storing registry info
- * keyed by the action name. However in case of a service interface,
+ * keyed by the action name. However in case of a service registry,
* different components may provide the requested item, and the final
* value of the method is decided at finalization and all this logic
* is handled by the Factory. In case of service
@@ -46,9 +46,9 @@
* javascript file does the initialization for itself, (or otherwise
* can assume that it cas been called by preceding code like in the
* case of the plugins), then the order of these javascripts is
- * arbitrary for interfaces to work.
+ * arbitrary for registries to work.
*
- * In the initialization the interface name and the item factory
+ * In the initialization the registry name and the item factory
* need to be supplied as parameters.
*
* registries.initializeRegistry('myregistry', MyFactory);
@@ -242,7 +242,7 @@
// it's a conflict.
if (registrar.Factory != Factory) {
;;; kukit.E = 'Registries.initializeRegistry() is called for
registry [';
-;;; kukit.E += interfaceName + '] with a different Factory than
earlier.';
+;;; kukit.E += registryName + '] with a different Factory than
earlier.';
throw new Error(kukit.E);
}
}
@@ -308,7 +308,7 @@
;;; kukit.E = 'Double registration by [' + config.sourceName + '][';
;;; kukit.E += providerVersion;
;;; kukit.E += '] of method [' + this.name;
-;;; kukit.E += '] in interface [' + this.registrar.registryName + ']';
+;;; kukit.E += '] in registry [' + this.registrar.registryName + ']';
throw new Error(kukit.E);
}
// Store the config
@@ -459,7 +459,7 @@
this._register = function(config) {
if (this.config != null) {
;;; kukit.E = 'Double registration of item [' + this.name;
-;;; kukit.E += '] in plugin interface [' + this.registrar.registryName
+ ']';
+;;; kukit.E += '] in plugin registry [' + this.registrar.registryName
+ ']';
throw new Error(kukit.E);
}
// Do some diagnostics // check the iterator.
@@ -507,7 +507,7 @@
* the only support needed is for tests to establish a clean room.
* For this, we provide simple save and restore methods. These can
* be called from setUp and tearDown of tests that want to provide their
- * own interfaces setup.
+ * own registries setup.
*
*/
@@ -573,7 +573,7 @@
/*
* Plugin registration method
*
- * To allow an easy way to register plugin interfaces, a
+ * To allow an easy way to register plugin registries, a
* simple method is provided.
*
* This appends a batch of information into the plugin
@@ -588,9 +588,9 @@
*/
this.registerPlugins = function(items, registries) {
- // interfaces is optional, and mainly used for tests
+ // registries is optional, and mainly used for tests
if (typeof(registries) == 'undefined') {
- // use global interfaces
+ // use global registries
registries = kukit.pluginregistry;
}
//
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins