-
Notifications
You must be signed in to change notification settings - Fork 20
Module: Controller
The controller module is at the heart of the SXP application. Almost all the other modules are generic and could be used for other things. But this one orchestrates them so as to get SXP.
It has the main, which instantiates everything.
It also processes and dispatches requests that come from the rest module.
In a traditional MVC architecture, the controller would just pass the requests to the model. But here the controller/managers are piled up on top of the basic manager provided by the model, allowing for further processing.
See also Architecture, Module:-Model > manager, managerDecorator.
A manager is what deals with saving/modifying/searching for objects across the network/database. It also assumes a fair amount of processing via decorators.