MoreMotion Base Classes / Interfaces |
![]() ![]() ![]() |
MoreMotion API provides base classes and Interfaces to develop Action Services, Data Service and Processes.
Clear Separation of the Data and the Representation No matter what type is it, a MoreMotion Java Class never generates the response by itself as long as the response is a web page. The generating the response is the task of the MoreMotion. The responsibility of a service class is to do its work and populate the data in ADOM objects as the result of the work. The data in ADOM objects are converted to XML by MoreMotion when they are needed by the page to be displayed. In contrary to a JSP or ASP programmer, a MoreMotion programmer never thinks about how the data he populates is rendered on the user interface. MoreMotion service classes are "Single Threaded" Please be aware that a MoreMotion Service Class (Action Service, Data Service) is executed as single threaded, that means MoreMotion will load only one instance of the service class and call it for all the requests. You have to be careful when using the private data members of the class since they are shared by all the requests. Otherwise you may encounter unpredictable results. Avoid this
The Correct Way
|