Author: gotcha
Date: Sun Oct 26 12:58:53 2008
New Revision: 59418
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/doc/HISTORY.txt
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/actionreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/commandreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/eventreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kssparser.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kukit.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/oper.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/plugin.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/providerreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/registries.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/resourcedata.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/selectorreg.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/runtests.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_kssparser.js
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_registries.js
Log:
* rename kukit.pluginregistry to kukit.plugins
* remove all mention of 'interface'
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/doc/HISTORY.txt
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/doc/HISTORY.txt
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/doc/HISTORY.txt
Sun Oct 26 12:58:53 2008
@@ -6,14 +6,14 @@
- ...
- - Add a general registry for interfaces.
+ - Add global registries.
Add service layers.
Refactor event binding and registries.
Move event, action, command, selector, valueprovider
- plugin registries into the interfaces registry,
+ plugin registries into the global registries,
Refactor processBindingEvents to make it iterate
on the binding sequence in a more efficient way.
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/actionreg.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/actionreg.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/actionreg.js
Sun Oct 26 12:58:53 2008
@@ -36,12 +36,12 @@
;;; kukit.e += ' [ActionRegistry.register].';
;;; throw new Error(kukit.E);
;;; }
- var actions = kukit.pluginregistry.schema.actions;
+ var actions = kukit.plugins.schema.actions;
actions.getItemFactory(name).register({actionFunc: func});
};
this.get = function(name) {
- var reg = kukit.pluginregistry.actions[name];
+ var reg = kukit.plugins.actions[name];
if (! reg || ! reg.actionFunc) {
// not found
;;; kukit.E = 'Error : undefined client action [' + name + '].';
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/commandreg.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/commandreg.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/commandreg.js
Sun Oct 26 12:58:53 2008
@@ -33,7 +33,7 @@
this.registerFromAction =
function(srcname, factory, name) {
- var actions = kukit.pluginregistry.schema.actions;
+ var actions = kukit.plugins.schema.actions;
//
// register a given action as a command, using the given vactor
var action_factory = actions.getItemFactory(srcname);
@@ -62,7 +62,7 @@
};
this.register = function(name, commandClass) {
- var actions = kukit.pluginregistry.schema.actions;
+ var actions = kukit.plugins.schema.actions;
var attrib = actions.getItemFactory(name);
this._register(name, commandClass, attrib);
};
@@ -81,7 +81,7 @@
};
this.get = function(name) {
- var action = kukit.pluginregistry.actions[name];
+ var action = kukit.plugins.actions[name];
var klass = action.commandClass;
if (! klass) {
;;; kukit.E = 'undefined command [' + name + ']';
@@ -147,7 +147,7 @@
// we use the default type.
var selectorType = this.selectorType ||
kukit.selectorTypesGlobalRegistry.defaultSelectorType;
- var info = kukit.pluginregistry.valueproviders[selectorType];
+ var info = kukit.plugins.valueproviders[selectorType];
// Check if the selector name really exists.
if (! info || ! info.returnType == 'selection' || ! info.selectorFunc) {
;;; kukit.E = 'Undefined selector type [' + selectorType + '], ';
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/eventreg.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/eventreg.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/eventreg.js
Sun Oct 26 12:58:53 2008
@@ -43,7 +43,7 @@
*/
var _EventRegistry = function () {
// XXX There is no actual registry here any more, just
- // emulating the old methods with the interfaces registry.
+ // emulating the old methods with the plugins registry.
/* there are the actual registration methods, to be called from plugins */
@@ -78,7 +78,7 @@
}
namespacedEventNames.push(eventName);
// register the event informataion
- var events = kukit.pluginregistry.schema.events;
+ var events = kukit.plugins.schema.events;
events.getItemFactory(eventName).register({
defaultActionMethodName: defaultActionMethodName,
parmTypes: null // missing from this api.
@@ -87,7 +87,7 @@
// Register the bind iteration
// This will specify the set of events that will be bound together,
// with the specified iterator
- var bindsequences = kukit.pluginregistry.schema.bindsequences;
+ var bindsequences = kukit.plugins.schema.bindsequences;
bindsequences.getItemFactory('').register({
eventNames: namespacedEventNames,
iterName: iterName,
@@ -853,7 +853,7 @@
this.processBindingEvents =
function (binder) {
- var interfaces = kukit.pluginregistry;
+ var plugins = kukit.plugins;
// Let's see all our events in a cycle.
processed = {};
// We iterate through the event names in this binder instance only.
@@ -869,9 +869,9 @@
}
// One iteration consists of more events. Process all these.
// (One of these is eventName itself, but we need not care.)
- var iteration = interfaces.bindsequences[eventName];
+ var iteration = plugins.bindsequences[eventName];
// Let's exit if this element does not exist
- // (the interface registry finalizes invalid methods to undefined)
+ // (the plugin registry finalizes invalid methods to undefined)
if (! iteration) {
continue;
}
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kssparser.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kssparser.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kssparser.js
Sun Oct 26 12:58:53 2008
@@ -249,7 +249,7 @@
;;; allowedReturnTypes = {string: true};
;;; kukit.E = 'event parameter [' + key + ']';
// global registry is used
- var registry = kukit.pluginregistry;
+ var registry = kukit.plugins;
var valuesByReturnType = kukit.va.createAndCheckRuleValues(values,
allowedReturnTypes, registry, false, kukit.E, this);
var value = valuesByReturnType.string;
@@ -303,7 +303,7 @@
;;; kukit.E = 'action definition [' + key + ']';
// check the rule values
// global registry is used
- var registry = kukit.pluginregistry;
+ var registry = kukit.plugins;
var valuesByReturnType = kukit.va.createAndCheckRuleValues(values,
allowedReturnTypes, registry, false, kukit.E, this);
var value = valuesByReturnType.string;
@@ -347,7 +347,7 @@
;;; allowedReturnTypes = {string: true};
;;; kukit.E = 'Wrong value in action error parameter [' + key + ']';
// global registry is used
- var registry = kukit.pluginregistry;
+ var registry = kukit.plugins;
var valuesByReturnType = kukit.va.createAndCheckRuleValues(values,
allowedReturnTypes, registry, false, kukit.E, this);
var value = valuesByReturnType.string;
@@ -376,7 +376,7 @@
// (from check).
//
// global registry is used
- var registry = kukit.pluginregistry;
+ var registry = kukit.plugins;
var value;
var allowedReturnTypes;
var noStringRequired = false;
@@ -1034,7 +1034,7 @@
css = singleword;
}
// global registry is used
- var registry = kukit.pluginregistry;
+ var registry = kukit.plugins;
// create the selector.
var id = null;
var ppid = null;
Modified: kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kukit.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kukit.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/kukit.js
Sun Oct 26 12:58:53 2008
@@ -237,8 +237,8 @@
;;; // If we have firebug, log the registries to
;;; // be introspected from the console.
;;; if (kukit.hasFirebug) {
-;;; kukit.logDebug('Next line shows kukit.pluginregistry:');
-;;; kukit.logDebug(kukit.pluginregistry);
+;;; kukit.logDebug('Next line shows kukit.plugins:');
+;;; kukit.logDebug(kukit.plugins);
;;; kukit.logDebug('Next line shows kukit.service:');
;;; kukit.logDebug(kukit.service);
;;; }
Modified: kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/oper.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/oper.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/oper.js
Sun Oct 26 12:58:53 2008
@@ -177,8 +177,8 @@
;;; throw new Error(kukit.E);
;;; }
//
- var interface = kukit.pluginregistry;
- var eventInfo = interface.events[name];
+ var plugins = kukit.plugins;
+ var eventInfo = plugins.events[name];
var methodName = eventInfo && eventInfo.defaultActionMethodName;
var success = false;
@@ -261,8 +261,8 @@
// valid, even if it received no parms in the eventRule,
// in which case it is not present as an action.
//
- var interface = kukit.pluginregistry;
- var methodName =
interface.events[this.getEventName()].defaultActionMethodName;
+ var plugins = kukit.plugins;
+ var methodName =
plugins.events[this.getEventName()].defaultActionMethodName;
return (typeof methodName != 'undefined');
} else
return false;
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/plugin.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/plugin.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/plugin.js
Sun Oct 26 12:58:53 2008
@@ -289,7 +289,7 @@
};
-/* XXX Example for using the interfaces registry
+/* XXX Example for using the plugins registry
*
* The markup selects the part that should be parsed by the server.
* Some info, that contains class names, should be outside this.
@@ -298,7 +298,7 @@
*/
/*
-kukit.interfaces.registerPlugins([
+kukit.plugins.registerPlugins([
// START KSS REGISTRY
['events', click, {
defaultActionMethodName: null}],
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/providerreg.js
==============================================================================
---
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/providerreg.js
(original)
+++
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/providerreg.js
Sun Oct 26 12:58:53 2008
@@ -42,8 +42,8 @@
// Default return type is string
returnType = 'string';
}
- // Always use the global interfaces to get the descriptor.
- var registry = kukit.pluginregistry.schema[this.name];
+ // Always use the global plugins to get the descriptor.
+ var registry = kukit.plugins.schema[this.name];
registry.getItemFactory(name).register({providerClass: func,
returnType: returnType});
};
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/registries.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/registries.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/registries.js
Sun Oct 26 12:58:53 2008
@@ -105,7 +105,7 @@
* binding of these registries is done by kukit at the beginning
* of bootstrap.
*
- * Created on the global registries "kukit.pluginregistry":
+ * Created on the global registries "kukit.plugins":
*
* name purpose attribute class
* ---- ------- ---------------
@@ -499,7 +499,7 @@
*/
this.cleanRoomSetUp = function(suite) {
- this._saved_pluginregistry = kukit.pluginregistry;
+ this._saved_plugins = kukit.plugins;
this._saved_service = kukit.service;
this.setupGlobalRegistries();
};
@@ -511,7 +511,7 @@
this.cleanRoomTearDown = function(suite) {
// Revert the saved state
- kukit.pluginregistry = this._saved_pluginregistry;
+ kukit.plugins = this._saved_plugins;
kukit.service = this._saved_service;
};
@@ -519,7 +519,7 @@
* used by kukit itself. They are two of then,
* stored globally:
*
- * kukit.pluginregistry Plugin registration
+ * kukit.plugins Plugin registration
* kukit.service Service layer
*
*/
@@ -527,9 +527,9 @@
// Initialize global registries
this.setupGlobalRegistries = function() {
// instantiate registries
- kukit.pluginregistry = new this.NamedRegistries();
+ kukit.plugins = new this.NamedRegistries();
kukit.service = new this.NamedRegistries();
- var r = kukit.pluginregistry;
+ var r = kukit.plugins;
r.initializeRegistry('events', this.PluginFactory);
r.initializeRegistry('bindsequences', this.BindSequenceFactory);
r.initializeRegistry('actions', this.PluginFactory);
@@ -540,7 +540,7 @@
// Finalize global registries
this.finalizeGlobalRegistries = function() {
- var schema = kukit.pluginregistry.schema;
+ var schema = kukit.plugins.schema;
schema.events.bindItems({});
schema.bindsequences.bindItems({});
schema.actions.bindItems({});
@@ -551,7 +551,7 @@
// At this point we setup the registries used by kukit,
// that implies that any code can access them in the kukit namespace
-// kukit.pluginregistry
+// kukit.plugins
// kukit.service
this.setupGlobalRegistries();
// The finalization of these registries is done from bootstrap.
@@ -578,7 +578,7 @@
// registries is optional, and mainly used for tests
if (typeof(registries) == 'undefined') {
// use global registries
- registries = kukit.pluginregistry;
+ registries = kukit.plugins;
}
//
for (var i=0; i<items.length; i++) {
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/resourcedata.js
==============================================================================
---
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/resourcedata.js
(original)
+++
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/resourcedata.js
Sun Oct 26 12:58:53 2008
@@ -674,7 +674,7 @@
// Use the value provider. This means the string is
// a shortcut and this provider is applied.
// global registry is used
- var registry = kukit.pluginregistry;
+ var registry = kukit.plugins;
var valueproviders = registry.valueproviders;
var provider = new valueproviders[providerName].providerClass();
// check is not needed now... we evaluate it right away
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/selectorreg.js
==============================================================================
---
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/selectorreg.js
(original)
+++
kukit/kukit.js/branch/ree-service-layer-and-refactoring/kukit/selectorreg.js
Sun Oct 26 12:58:53 2008
@@ -84,7 +84,7 @@
};
-var registrar = kukit.pluginregistry.schema.valueproviders;
+var registrar = kukit.plugins.schema.valueproviders;
registrar.getItemFactory('passnode').register({
providerClass: sr.PassnodePP,
returnType: 'selection'});
@@ -114,7 +114,7 @@
;;; throw new Error(kukit.E);
;;; }
// Also register the selector param provider
- var registrar = kukit.pluginregistry.schema.valueproviders;
+ var registrar = kukit.plugins.schema.valueproviders;
var providerClass = sr.makeAnySelectorProvider(selectorFunc);
registrar.getItemFactory(name).register({
providerClass: providerClass,
@@ -124,7 +124,7 @@
};
this.get = function(name) {
- var info = kukit.pluginregistry.valueproviders[name];
+ var info = kukit.plugins.valueproviders[name];
;;; if (! info || ! info.returnType == 'selection' || ! info.selectorFunc) {
;;; throw new Error('Unknown selector type "' + name + '"');
;;; }
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/runtests.js
==============================================================================
--- kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/runtests.js
(original)
+++ kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/runtests.js
Sun Oct 26 12:58:53 2008
@@ -25,9 +25,9 @@
testsuite.registerTest(kukit.KssParserSelectorsTestCase);
testsuite.registerTest(kukit.KssParserValueProvidersCheckTestCase);
testsuite.registerTest(kukit.KssParserSelectorTestCase);
- testsuite.registerTest(kukit.InterfacesTestCase);
- testsuite.registerTest(kukit.ServiceInterfacesTestCase);
- testsuite.registerTest(kukit.PluginInterfacesTestCase);
+ testsuite.registerTest(kukit.RegistriesTestCase);
+ testsuite.registerTest(kukit.ServiceRegistryTestCase);
+ testsuite.registerTest(kukit.PluginRegistriesTestCase);
testsuite.registerTest(kukit.ErrorsTestCase);
testsuite.runSuite();
};
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_kssparser.js
==============================================================================
---
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_kssparser.js
(original)
+++
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_kssparser.js
Sun Oct 26 12:58:53 2008
@@ -30,9 +30,9 @@
//
// The tests test at numerous occasion a non-existent
// event, so be careful when you add a new one.
- // create a clean room interface registry
+ // create a clean room registry
//
- // Add somw events
+ // Add some events
kukit.eventsGlobalRegistry.register('dnd', 'drag',
kukit.pl.NativeEventBinder, null, null);
kukit.eventsGlobalRegistry.register(null, 'click',
@@ -63,7 +63,7 @@
kukit.pprovidersGlobalRegistry.register('currentForm',
kukit.fo.CurrentFormValueProvider, 'formquery');
//
- // finalize the interfaces we just set up
+ // finalize the registries we just set up
kukit.reg.cleanRoomFinalize(this);
};
@@ -860,7 +860,7 @@
var cursor = new kukit.tk.Cursor(txt);
var parser = new kukit.kssp.PropValue(cursor, null, true);
var value = parser.value;
- kukit.va.createAndCheckRuleValue(value, {'string': true},
kukit.pluginregistry, false, null);
+ kukit.va.createAndCheckRuleValue(value, {'string': true},
kukit.plugins, false, null);
};
this.testNormalProviderRejectsSelectionAsParameter = function() {
@@ -874,7 +874,7 @@
var parser = new kukit.kssp.PropValue(cursor, null, true);
var value = parser.value;
this.assertThrows(function() {
- value.check(kukit.pluginregistry);
+ value.check(kukit.plugins);
},
Error);
};
@@ -906,7 +906,7 @@
var parser = new kukit.kssp.PropValue(cursor, null, true);
var value = parser.value;
this.assertThrows(function() {
- value.check(kukit.pluginregistry);
+ value.check(kukit.plugins);
},
Error);
};
Modified:
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_registries.js
==============================================================================
---
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_registries.js
(original)
+++
kukit/kukit.js/branch/ree-service-layer-and-refactoring/tests/test_registries.js
Sun Oct 26 12:58:53 2008
@@ -21,17 +21,17 @@
var kukit = {};
}
-kukit.InterfacesTestCaseBase = function() {
+kukit.RegistriesTestCaseBase = function() {
this.setUp = function() {
// work with our own object, not interfering
// with global object setup in registries.js
this.registries = new kukit.reg.NamedRegistries();
};
-}; /* end InterfacesTestCase */
-kukit.InterfacesTestCaseBase.prototype = new kukit.UtilsTestCaseBase();
+}; /* end RegistriesTestCase */
+kukit.RegistriesTestCaseBase.prototype = new kukit.UtilsTestCaseBase();
-kukit.InterfacesTestCase = function() {
- this.name = 'kukit.InterfacesTestCase';
+kukit.RegistriesTestCase = function() {
+ this.name = 'kukit.RegistriesTestCase';
/*
* Plugin registries
*/
@@ -54,8 +54,8 @@
}
};
- this.testInterfaces = function() {
- // We can create a simple method descriptor for an interface we want.
+ this.testRegistries = function() {
+ // We can create a simple method descriptor for an registry we want.
// The method descriptor is managing the method's registration state
called = [];
// Let's create a registry that uses TestFactory.
@@ -100,7 +100,7 @@
Error);
};
- this.testFinalizeInterfaces = function() {
+ this.testFinalizeRegistries = function() {
// We have a singleton, called s.
var s = {};
// We eill create a simple item for a selected registry.
@@ -151,24 +151,24 @@
this.registries.initializeRegistry('dummytest2', TestFactory2);
};
-}; /* end InterfacesTestCase */
-kukit.InterfacesTestCase.prototype = new kukit.InterfacesTestCaseBase();
+}; /* end RegistriesTestCase */
+kukit.RegistriesTestCase.prototype = new kukit.RegistriesTestCaseBase();
-kukit.ServiceInterfacesTestCase = function() {
- this.name = 'kukit.ServiceInterfacesTestCase';
+kukit.ServiceRegistryTestCase = function() {
+ this.name = 'kukit.ServiceRegistryTestCase';
/*
* Service registries
*/
this.setUp = function() {
// work with our own registries, not interfering
- // kukit.service or kukit.pluginregistry.
+ // kukit.service or kukit.plugins.
this.registries = new kukit.reg.NamedRegistries();
// Let's initialize a dummyservice registry.
this.registries.initializeRegistry('dummyservice',
kukit.reg.ServiceFactory);
};
- this.testServiceInterfaces = function() {
+ this.testServiceRegistry = function() {
// We have a singleton, called s.
var s = {};
var registrar = this.registries.schema.dummyservice;
@@ -310,7 +310,7 @@
this.testDoubleProvided = function() {
// A method cannot be provided twice by the same source.
- // Let's initialize a dimmytest interface.
+ // Let's initialize a dimmytest registry.
var registrar = this.registries.schema.dummyservice;
// Provide the method first
registrar.getItemFactory('first').provide({
@@ -375,7 +375,7 @@
return this.loaded;
};
}();
- // Now, for the interface part
+ // Now, for the registry part
var s = {};
var registrar = this.registries.schema.dummyservice;
// Define the method with loader and fallback script
@@ -418,19 +418,19 @@
Error);
};
-}; /* end ServiceInterfacesTestCase */
-kukit.ServiceInterfacesTestCase.prototype = new kukit.InterfacesTestCaseBase();
+}; /* end ServiceRegistryTestCase */
+kukit.ServiceRegistryTestCase.prototype = new kukit.RegistriesTestCaseBase();
-kukit.PluginInterfacesTestCase = function() {
- this.name = 'kukit.PluginInterfacesTestCase';
+kukit.PluginRegistriesTestCase = function() {
+ this.name = 'kukit.PluginRegistriesTestCase';
/*
* Plugin registries
*/
this.setUp = function() {
// work with our own object, not interfering
- // kukit.pluginregistry
+ // kukit.plugins
this.registries = new kukit.reg.NamedRegistries();
// Let's initialize an events and binditeration registry.
this.registries.initializeRegistry('dummyevents',
kukit.reg.PluginFactory);
@@ -440,7 +440,7 @@
var M = function() {
this.bind = function(oper) {};
};
- this.testPluginInterfaces = function() {
+ this.testPluginRegistries = function() {
var events = this.registries.schema.dummyevents;
var bindsequences = this.registries.schema.dummybindsequences;
// somewhere else, core registers the items:
@@ -516,7 +516,7 @@
var events = this.registries.schema.dummyevents;
var bindsequences = this.registries.schema.dummybindsequences;
// somewhere else, core registers the items.
- // XXX registry name '' is used to call interface level methods
+ // XXX registry name '' is used to call registry level methods
bindsequences.getItemFactory('').register({
eventNames: ['click', 'timeout'],
iterName: 'Each',
@@ -599,7 +599,7 @@
this.testRegisterPluginsWrongNumberOfItems = function() {
// In registerPlugins, list items must have 3 members
- // (interfaceName, attributeName, config)
+ // (registryName, attributeName, config)
//
this.assertThrows(function() {
kukit.reg.registerPlugins(
@@ -623,12 +623,12 @@
this.testRegisterPluginsWrongInterface = function() {
// In registerPlugins, list items must have 3 members
- // (interfaceName, attributeName, config)
+ // (registryName, attributeName, config)
//
this.assertThrows(function() {
kukit.reg.registerPlugins(
[
- ['nosuchinterface', 'click', {
+ ['nosuchregistry', 'click', {
name: 'click',
defaultActionMethodName: null,
parmtypes: [
@@ -653,7 +653,7 @@
//
// We register "dummyservice" so it does not fail because
// it's missing
- kukit.pluginregistry.initializeRegistry('dummyservice',
kukit.reg.ServiceFactory);
+ kukit.plugins.initializeRegistry('dummyservice',
kukit.reg.ServiceFactory);
//
this.assertThrows(function() {
kukit.reg.registerPlugins(
@@ -673,11 +673,11 @@
-}; /* end PluginInterfacesTestCase */
-kukit.PluginInterfacesTestCase.prototype = new kukit.InterfacesTestCaseBase();
+}; /* end PluginRegistriesTestCase */
+kukit.PluginRegistriesTestCase.prototype = new kukit.RegistriesTestCaseBase();
if (typeof(testcase_registry) != 'undefined') {
- testcase_registry.registerTestCase(kukit.InterfacesTestCase,
'kukit.InterfacesTestCase');
- testcase_registry.registerTestCase(kukit.ServiceInterfacesTestCase,
'kukit.ServiceInterfacesTestCase');
- testcase_registry.registerTestCase(kukit.PluginInterfacesTestCase,
'kukit.PluginInterfacesTestCase');
+ testcase_registry.registerTestCase(kukit.RegistriesTestCase,
'kukit.RegistriesTestCase');
+ testcase_registry.registerTestCase(kukit.ServiceRegistryTestCase,
'kukit.ServiceRegistryTestCase');
+ testcase_registry.registerTestCase(kukit.PluginRegistriesTestCase,
'kukit.PluginRegistriesTestCase');
}
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins