engine Prototype

[ engine overview | whitefrost.com | Stephen W. Cote ]

This prototype demonstrates an implementation of the engine service.

When the Add Engine button is clicked, an HTML element - <engine /> - is dynamically added to the document. When the Load Engines button is clicked, the engine service checks to see if any <engine /> elements exist in the document. If one or more of these elements exist, the first element becomes the primary engine. If no elements exist, the engine service creates a new primary engine without adding an element to the page. The primary engine has a different set of responsibilities than subsequent engines, namely that of loading the external configuration data and initializing additional components.

At present, the default behavior of the primary engine is as follows.

bug: resetting the engines will not reset child tasks and transactions initiated by the original task. Only the loader_task is reset. This means resetting the engines will not allow the primary engine to load a second time.

<!-- BEGIN -->

<!-- END -->