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

Interview Questions For Microsoft Dynamics CRM
Interview Questions For Microsoft Dynamics CRMInterview Questions For Microsoft Dynamics CRM
Interview Questions For Microsoft Dynamics CRM
Kumari Warsha Goel
 
ASP.NET 4 and AJAX
ASP.NET 4 and AJAXASP.NET 4 and AJAX
ASP.NET 4 and AJAX
KulveerSingh
 

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óN
Mileidy Castillo
 
Succession Planning
Succession PlanningSuccession Planning
Succession Planning
grbrainerd
 
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
efconsulting
 

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

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
bwullems
 
Stephen Kennedy Silverlight 3 Deep Dive
Stephen Kennedy Silverlight 3 Deep DiveStephen Kennedy Silverlight 3 Deep Dive
Stephen Kennedy Silverlight 3 Deep Dive
MicrosoftFeed
 

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

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 

Recently uploaded (20)

Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
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...
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
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...
 
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
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Structuring your flex application with swiz