Ext JS和Sencha Touch的APIs增強:Deft JS

jopen 10年前發布 | 19K 次閱讀 Deft JS JavaScript開發

deftjs.png
Deft JS 增強了 Ext JS 和 Sencha Touch 的 API,提供額外的構建塊用以支持大的開發團隊快速開發企業級應用,利用最佳實踐和良好的模式實現工業化應用。

Goals

  • Flexibility

    • Coordinates dynamic assembly of object dependencies based on a configurable IoC container.
    • </ul> </li>

    • Approachability

      • Builds on familiar Ext JS API syntax conventions for ‘pay-as-you-go’ complexity.
      • </ul> </li>

      • Simplicity

        • Eliminates boilerplate code in favor of the simplest expression of developer intent.
        • </ul> </li>

        • Testability

          • Promotes loose coupling through class annotation driven dependency injection.
          • </ul> </li>

          • Extensibility

            • Leverages the advanced class system provided by Ext JS and Sencha Touch.
            • </ul> </li>

            • Reusability

              • Enables business layer code reuse between Ext JS and Sencha Touch applications.
              • </ul> </li> </ul>

                Features

                IoC Container

                • Provides class annotation-driven dependency injection.
                • Maps dependencies by user-defined identifiers.
                • Resolves dependencies by class instance, factory function or value.
                • Supports singleton and prototype resolution of class instance and factory function dependencies.
                • Offers eager and lazy instantiation of dependencies.
                • Injects dependencies into Ext JS class configs and properties before the class constructor is executed.
                • </ul>

                  MVC with ViewControllers

                  • Provides class annotation-driven association between a given view and its ViewController.
                  • Clarifies the role of the controller - i.e. controlling a view and delegating work to injected business services (service classes, Stores, etc.).
                  • Supports multiple independent instances of a given view, each with their own ViewController instance.
                  • Reduces memory usage by automatically creating and destroying view controllers in tandem with their associated views.
                  • Supports concise configuration for referencing view components and registering event listeners with view controller methods.
                  • Integrates with the view destruction lifecycle to allow the view controller to potentially cancel removal and destruction.
                  • Simplifies clean-up by automatically removing view and view component references and event listeners.
                  • </ul>

                    項目主頁:http://www.baiduhome.net/lib/view/home/1409131598713

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!