-
Notifications
You must be signed in to change notification settings - Fork 52
freedom.js structure
soycode edited this page Sep 21, 2015
·
9 revisions
freedom.js provides several distinct services to applications, including managing isolation, delivery, and lifetime. To manage this complexity, the internal structure of freedom.js is broken up into distinct classes. Here we explain the purpose and implementation of the distinct pieces which are combined to form freedom.js
- Resource Manager - File Resolution and Loading
- Consumer API - The API exposed to modules
- Provider API - Exposing a class as a module
- Module Environment - Prepares a new module for user code
- Module Interface - Handles Message passing and linking between modules
- Module Policy - Decides when to reuse or create module instances
- Debugger - Internal logging structure with customization
- Module Implementations - The construction WebWorker, Node, and other types of modules.
- Message Hub - The Message router between freedom.js components
- API Registry - Registration and lookup of APIs and providers
- Packaging - Creation of freedom.js from these classes.
- Module cleanup - clean teardown of freedom.js modules