Damir Murat's Library tagged → View Popular
02 Oct 09
Potomac - Bringing OSGi Modularity to Flex - InsideRIA
-
It’s possible to use the Flex module system to develop similar applications, but it’s not easy. For one, we must avoid using ModuleLoader. ModuleLoader is used when a module only defines one UI component. In these complex applications, modules never define just one UI component. Instead we need to use ModuleManager to load our modules. This seems easy enough until we start to dig into when and where we need to load our modules. If a module contains 10 or 20 UI components, we’ll need to ensure the module is loaded before the user opens any of those 10 to 20 screens. Now multiply that by 10 or more modules that might exist in a medium sized modular application. We can quickly see that our code will be littered with calls to ModuleManager and IModuleInfo#load(). And this doesn’t take into account the complex dependency structure that OSGi enables. We also don’t want to think about all the asynchronous code that will be necessary as each module load is an asynchronous call. These problems make us cry out for a modular framework that takes care of these details for us - something the Eclipse platform has been doing very successfully for OSGi.
-
- Be defined in their own specific project.
- Declare their dependencies on other modules.
- Be easily reused across different applications.
- Be loaded automatically without ever needing to call ModuleManager.
- A custom metadata processor
- Dependency injection
Potomac is the new framework that brings OSGi capabilities to Flex. It brings a new set of modularity features that allow modules to:
- 19 more annotations...
1 - 19 of 19
Showing 20▼ items per page
Selected Tags
Related Tags
Sponsored Links
Ads by Google
Top Contributors
Groups interested in osgi
Related Lists on Diigo
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
