SlideShare a Scribd company logo
1 of 32
Structuring Flex applications with the Swiz framework Spreker:  Jamie Craane
Agenda Presentationpatterns Swiz Q&A
PresentationPatterns Autonomous view Presentation Model Code Behind Model View Presenter Model View Controller And many more…
Autonomous view View
Code Behind View MXML Code-behind Eventhandlers Data Model
Model View Presenter Uses contract to  read/write view data View Presenter Read/write model Model
Presentation Model View Presentation model Model
Model View Controller Responds to user events View Controller Updates model Model Notifies view
MVC View Model Service display update update mediator update invokes invokes invokes Controller
Model: Representing State ,[object Object]
[Bindable] : dispatcheseventon state changesession user personList taskList selectedPerson
View: Presentation and Interaction View Model References personlist taskdetails Notifies ,[object Object]
Responds to model changes, ({} databinding)
Responds to user actions, (Declarativeeventhandling)
MostlyMXML,[object Object]
Invokes services
Updates modelView Controller call Service Invoke Model Updates
Service: Encapsulatesbackends Services PersonService TaskService PersonService Mock ,[object Object]
HttpServiceorRemoteObject (ie. BlazeDS)
Returns anASyncToken
Logical place forstubs,[object Object]
Swiz Micro architecture and Dependency Injection framework
MircoArchitectureFramework “Enables, but not restricts, in the implementation of an application following any given architecture”
Swiz in a nutshell Dependency Injection Event Mediation Utilities ServiceHelper Global exception handler And more… MetaData processors
DependencyInjection 1 How can a given object obtain a reference to another object?
DependencyInjection 2 Object A Object B Depends on
DependencyInjection 3 Object A DI framework Object B Object A Object B Application Context
Dependencyinjection 4 [Inject] public var userController:UserController; <?xml version="1.0" encoding="utf-8"?> <swiz:BeanProvider 	<controller:UserController/> </swiz:BeanProvider>
Dependencyinjection 5 Typically inject by type Specify Bean ID if necessary Works with interfaces and inheritance
WhyDependencyInjection? Removes dependencies on concrete implementations No ServiceLocator Easy to see dependencies
EventMediation dispatcher.dispatchEvent( new TaskEvent(TaskEvent.SAVE_TASK_SUCCESS, true)); [Mediate(event="TaskEvent.SAVE_TASK_SUCCESS")] publicfunction saveTaskSuccess():void {   this.closeTaskDetailsWindow();   taskController.retrieveTasks(); }

More Related Content

What's hot (20)

What is MVC?
What is MVC?What is MVC?
What is MVC?
 
Microsoft Biz Talk Server
Microsoft Biz Talk ServerMicrosoft Biz Talk Server
Microsoft Biz Talk Server
 
Angular introduction basic
Angular introduction basicAngular introduction basic
Angular introduction basic
 
Single page application 03
Single page application   03Single page application   03
Single page application 03
 
Web Service
Web ServiceWeb Service
Web Service
 
Interview Questions For Microsoft Dynamics CRM
Interview Questions For Microsoft Dynamics CRMInterview Questions For Microsoft Dynamics CRM
Interview Questions For Microsoft Dynamics CRM
 
Session vi(user control)
Session vi(user control)Session vi(user control)
Session vi(user control)
 
MVVM In Use
MVVM In UseMVVM In Use
MVVM In Use
 
Mvc fundamental
Mvc fundamentalMvc fundamental
Mvc fundamental
 
ASP.NET 4 and AJAX
ASP.NET 4 and AJAXASP.NET 4 and AJAX
ASP.NET 4 and AJAX
 
RMsis Overview
RMsis OverviewRMsis Overview
RMsis Overview
 
Using WatiN in Sharepoint
Using WatiN in SharepointUsing WatiN in Sharepoint
Using WatiN in Sharepoint
 
Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015
 
Principles of MVC for Rails Developers
Principles of MVC for Rails DevelopersPrinciples of MVC for Rails Developers
Principles of MVC for Rails Developers
 
MVC architecture by Mohd.Awais on 18th Aug, 2017
MVC architecture by Mohd.Awais on 18th Aug, 2017MVC architecture by Mohd.Awais on 18th Aug, 2017
MVC architecture by Mohd.Awais on 18th Aug, 2017
 
Computer training classes for pega
Computer training classes for pega Computer training classes for pega
Computer training classes for pega
 
Trigon Flexismart Screenshots (Website)
Trigon Flexismart Screenshots (Website)Trigon Flexismart Screenshots (Website)
Trigon Flexismart Screenshots (Website)
 
Getting Started With the TFS Object Model
Getting Started With the TFS Object ModelGetting Started With the TFS Object Model
Getting Started With the TFS Object Model
 
RMsis Overview
RMsis OverviewRMsis Overview
RMsis Overview
 
MVC Architecture
MVC ArchitectureMVC Architecture
MVC Architecture
 

Viewers also liked

Charla Final Plan De SucesióN
Charla Final Plan De SucesióNCharla Final Plan De SucesióN
Charla Final Plan De SucesióNMileidy Castillo
 
Taller: Planes de Sucesión - 18 de junio - San José, Costa Rica
Taller: Planes de Sucesión - 18 de junio - San José, Costa RicaTaller: Planes de Sucesión - 18 de junio - San José, Costa Rica
Taller: Planes de Sucesión - 18 de junio - San José, Costa RicaHR Gurú Latinoamérica
 
Planes de sucesión 1
Planes de sucesión 1Planes de sucesión 1
Planes de sucesión 1jufequin0521
 
Succession Planning
Succession PlanningSuccession Planning
Succession Planninggrbrainerd
 
Planificar la sucesión en la empresa familiar
Planificar la sucesión en la empresa familiarPlanificar la sucesión en la empresa familiar
Planificar la sucesión en la empresa familiarefconsulting
 

Viewers also liked (8)

Marco conceptual
Marco conceptualMarco conceptual
Marco conceptual
 
Claves para elaborar un plan de sucesión. anticiparse al futuro y retener el ...
Claves para elaborar un plan de sucesión. anticiparse al futuro y retener el ...Claves para elaborar un plan de sucesión. anticiparse al futuro y retener el ...
Claves para elaborar un plan de sucesión. anticiparse al futuro y retener el ...
 
Charla Final Plan De SucesióN
Charla Final Plan De SucesióNCharla Final Plan De SucesióN
Charla Final Plan De SucesióN
 
Taller: Planes de Sucesión - 18 de junio - San José, Costa Rica
Taller: Planes de Sucesión - 18 de junio - San José, Costa RicaTaller: Planes de Sucesión - 18 de junio - San José, Costa Rica
Taller: Planes de Sucesión - 18 de junio - San José, Costa Rica
 
Planes de sucesión 1
Planes de sucesión 1Planes de sucesión 1
Planes de sucesión 1
 
Succession Planning
Succession PlanningSuccession Planning
Succession Planning
 
Cómo hacer un plan de sucesión en la empresa: anticiparse al futuro
Cómo hacer un plan de sucesión en la empresa: anticiparse al futuroCómo hacer un plan de sucesión en la empresa: anticiparse al futuro
Cómo hacer un plan de sucesión en la empresa: anticiparse al futuro
 
Planificar la sucesión en la empresa familiar
Planificar la sucesión en la empresa familiarPlanificar la sucesión en la empresa familiar
Planificar la sucesión en la empresa familiar
 

Similar to Structuring your flex application with swiz

MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCAnton Krasnoshchok
 
Applying Code Customizations to Magento 2
Applying Code Customizations to Magento 2 Applying Code Customizations to Magento 2
Applying Code Customizations to Magento 2 Igor Miniailo
 
Building an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernateBuilding an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernatebwullems
 
Portable Class Libraries and MVVM
Portable Class Libraries and MVVMPortable Class Libraries and MVVM
Portable Class Libraries and MVVMAndreas Kuntner
 
Stephen Kennedy Silverlight 3 Deep Dive
Stephen Kennedy Silverlight 3 Deep DiveStephen Kennedy Silverlight 3 Deep Dive
Stephen Kennedy Silverlight 3 Deep DiveMicrosoftFeed
 
Component Based UI Architecture - Alex Moldovan
Component Based UI Architecture - Alex MoldovanComponent Based UI Architecture - Alex Moldovan
Component Based UI Architecture - Alex MoldovanITCamp
 
Model view controller (mvc)
Model view controller (mvc)Model view controller (mvc)
Model view controller (mvc)M Ahsan Khan
 
AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014Ran Wahle
 
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...Svetlin Nakov
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC StructureDipika Wadhvani
 

Similar to Structuring your flex application with swiz (20)

MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVC
 
Applying Code Customizations to Magento 2
Applying Code Customizations to Magento 2 Applying Code Customizations to Magento 2
Applying Code Customizations to Magento 2
 
Spring Framework-II
Spring Framework-IISpring Framework-II
Spring Framework-II
 
Mobile architectures
Mobile architecturesMobile architectures
Mobile architectures
 
Building an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernateBuilding an enterprise app in silverlight 4 and NHibernate
Building an enterprise app in silverlight 4 and NHibernate
 
Jsf presentation
Jsf presentationJsf presentation
Jsf presentation
 
Portable Class Libraries and MVVM
Portable Class Libraries and MVVMPortable Class Libraries and MVVM
Portable Class Libraries and MVVM
 
Stephen Kennedy Silverlight 3 Deep Dive
Stephen Kennedy Silverlight 3 Deep DiveStephen Kennedy Silverlight 3 Deep Dive
Stephen Kennedy Silverlight 3 Deep Dive
 
MVC Web Application
MVC Web Application MVC Web Application
MVC Web Application
 
Test
TestTest
Test
 
MVC
MVCMVC
MVC
 
A4 from rad to mvc
A4 from rad to mvcA4 from rad to mvc
A4 from rad to mvc
 
Component Based UI Architecture - Alex Moldovan
Component Based UI Architecture - Alex MoldovanComponent Based UI Architecture - Alex Moldovan
Component Based UI Architecture - Alex Moldovan
 
J2EE pattern 5
J2EE pattern 5J2EE pattern 5
J2EE pattern 5
 
Model view controller (mvc)
Model view controller (mvc)Model view controller (mvc)
Model view controller (mvc)
 
AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014AngularJs Workshop SDP December 28th 2014
AngularJs Workshop SDP December 28th 2014
 
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
Architectural Patterns and Software Architectures: Client-Server, Multi-Tier,...
 
Dot net training bangalore
Dot net training bangaloreDot net training bangalore
Dot net training bangalore
 
MVC 4
MVC 4MVC 4
MVC 4
 
Ppt of Basic MVC Structure
Ppt of Basic MVC StructurePpt of Basic MVC Structure
Ppt of Basic MVC Structure
 

Recently uploaded

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

Structuring your flex application with swiz