Dependency Injection and other essential extensions for enterprise web and mobile application development with ExtJS and Sencha Touch.
Essential extensions for enterprise web and mobile application development with Ext JS and Sencha Touch
DeftJS enhances Ext JS and Sencha Touch’s APIs with additional building blocks that enable large development teams to rapidly build enterprise scale applications, leveraging best practices and proven patterns discovered by top RIA developers at some of the best consulting firms in the industry.
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.
MVC with View Controllers
- Provides class annotation driven association between a given view and its view controller.
- Clarifies the role of the controller - i.e. controlling a view and delegating work to injected business services (ex. Stores).
- Supports multiple independent instances of a given view, each with their own view controller 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.
Promises and Deferreds
- Provides an elegant way to represent a ‘future value’ resulting from an asynchronous operation.
- Offers a consistent, readable API for registering success, failure, cancellation or progress callbacks.
- Allows chaining of transformation and processing of future values.
- Simplifies processing of a set of future values via utility functions including all(), any(), map() and reduce().
- Implements the CommonJS Promises/A specification.