• Save
Enterprise Flex Using Cairngorm
Upcoming SlideShare
Loading in...5
×
 

Enterprise Flex Using Cairngorm

on

  • 6,503 views

Enterprise Flex Using Cairngorm

Enterprise Flex Using Cairngorm

Statistics

Views

Total Views
6,503
Views on SlideShare
6,252
Embed Views
251

Actions

Likes
9
Downloads
0
Comments
0

4 Embeds 251

http://jaibeermalik.wordpress.com 219
http://www.slideshare.net 30
http://www.w3schools.com 1
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Enterprise Flex Using Cairngorm Enterprise Flex Using Cairngorm Presentation Transcript

    • Enterprise Flex
    • using Cairngorm
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • JAIBEER MALIK
    • 2004 B.Tech from IIT KGP
    • Total 5+ years of IT Experience in software development
    • Former Employers: Sapient, Globallogic
    • Currently working as Senior Consultant with Xebia
    • Certified Scrum Master
    • Experienced in: Java, J2ee, Unix, Flex, Distributed Agile.
    • Thumb rule: Delivering Quality solution to all software problems
    • Hobbies: Swimming, Basketball, Volleyball, Cricket...Sports
    • Web: http://jaibeermalik.wordpress.com
    • Profile: http://www.linkedin.com/in/jaibeermalik
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Agenda
    • Enterprise Flex
    • Flex MVC : Cairngorm
    • Flex IOC : SpringActionscript & Cairngorm Extension
    • Other Cairngorm Extensions (UM)
    • Cairngorm View Notifications Strategies
    • Flex Data Transfer Strategies
    • Flex Enterprise Security using Chimp
    • Questions?
    • Feedback!!!
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Enterprise Flex
    • Enterprise Flex
      • Suit best for the enterprise applications
      • MVC Frameworks
      • IOC Frameworks
      • Solve Business problems
      • Provide Enterprise Security
      • Easily Scalable and Maintainable
      • Easily Testable
    • Flex Frameworks
      • Cairngorm, PureMVC, Swiz, Mate, MVCS, RobotLegs, Parsley
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Flex MVC : Cairngorm
    • Flex MVC framework
    • Lightweight micro architecure
    • “ best-practice” methodology
    • Separation of concerns
    • IDE support for command & controller
    • Maven dependency
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Cairngorm: Micro Architecture Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Flex IOC: SpringActionscript
    • Spring Extension, formerly known as Prana framework.
    • IOC framework for action script.
    • SpringActionscript Cairngorm Extension, How it fits:
      • Event name and command mapping in front controller, define it in context file
      • Command needs ModelLocator, inject through context file
      • Command needs Delegate, inject through context file
      • Delegate needs Service, inject through context file
      • Services and Channel settings, configure through context file
    • Helpful in testing by injecting stub.
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • SpringActionscript: Getting Started
    • Maven Repository:
    • Maven POM depedencies:
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • SpringActionscript: Sample Code Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Cairngorm Extension: UniversalMind (UM)
    • Extensions:
      • Events
      • View Notification
      • Front Controllers
      • Command Implementation
      • Delegate Implementation
      • ServiceLocator
    • Helps in solving many business problems
    • Easily integrated
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Cairngorm : Responders from Command to View
    • Cairngorm, Current Responders :
    • Cairngorm, What we want?
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Cairngorm View Notification Strategies
    • Presentation Model :
      • Control view states (http://martinfowler.com/eaaDev/PresentationModel.html)
    • Cairngorm UM Extension (extends UMEvent) :
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Flex Data Transfer Strategies
    • Influencing factors for Data Transfer Strategy
      • Data Intensive
      • Transfer over wire, network bandwidth
      • Static data centric
      • Media centric
      • User experience centric, fancy look & feel
      • Many more similar factors...
    • Data Transfer Strategies
      • Data Transfer Object (DTO/VO) Strategy
      • Flex-facade Strategy
      • Some-Adapter Strategy
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Data Transfer Strategies: DTO/VO
    • Data Transfer Object (DTO/VO) Strategy:
      • May map domain entity on server side
      • Retrieve only required data
      • Avoid loading/transferring unnecessary data over wire
    • Few Examples:
      • Search Results DTOs
      • Loading of large images
      • Loading of heaving media
      • files
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Data Transfer Strategies: Facade
    • Flex-Facade Strategy:
      • Client specific operations, flex client specific implementation
      • Performance optimization strategy for flex client only
      • To solve lazy loading and transaction related problem in case using hibernate.
      • Data transfer object conversion implementation
      • Minimum changes to domain entities and back end service to keep it scalable for other kind of clients.
    • Few Examples:
      • Flex client DTO conversion
      • To solve Hibernate loading problems
      • Expose only flex client specific services to public
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Data Transfer Strategies: Adapters
    • Adapters: Seamless persistence for ORM frameworks like JPA, Hibernate and Flex integration
      • Gilead (http://noon.gilead.free.fr/gilead/)
      • Dphibernate (http://code.google.com/p/dphibernate/)
      • Dsadapters (http://code.google.com/p/dsadapters/)
    • dphibernate:
      • “ dpHibernate is a custom Flex Library and a custom BlazeDS Hibernate adapter that work together to give you support for lazy loading of hibernate objects from inside your flex applications. ”
      • Pros: No need to worry about persistence and loading problems.
      • Cons: Domain entities need to implement specifc interface, which can be done in flex-facade also.
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Flex Enterprise Security using Chimp
    • Enterprise Security : 3-A's
      • Authentication
      • Authorization
      • Access Control
    • Server Side Security : Spring Blazeds & Spring-Security
    • Flex Side Security : Chimp
    • Chimp
      • “ Chimp is permission based filtering component for Adobe Flex and AIR. Applications implement Chimp by adding metadata within the Flex UI components. Based on the metadata it will remove components completely, enable/disable, and update visibility.”
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Chimp : Getting Started
    • SWC File :
      • http://flexible-chimp.googlecode.com/files/chimp.swc
    • Maven dependency entry
      • Update Nexus Repo
    • Flex Builder
      • Update new metadata
      • entry
    • Maven POM entry
      • Update new metadata
      • entry included on maven build
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Chimp : How to use it?
    • Using permission as metadata inside view components:
    • Authentication:
    • Loading permission on flex side:
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Resources
    • Jai's Weblog
      • Flex then, now & tomorrow – From a java developer’s perspective
      • Flex: Cairngorm (MVC), SpringActionscript (IOC) and other Cairngorm Extensions
      • Flex: SpringActionscript (IOC) & SpringActionscript Cairngorm Extension Sample Code Examples
      • Flex: Cairngorm View Notifications Strategies, Responders from Command to View
      • Flex: Choosing the right flex data transfer strategy and designing the application accordingly
      • Flex: Enterprise security implementation using Chimp, permission based filtering component
      • Flex Tips&Tricks
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • ? Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com
  • Feedback!!!
    • [email_address]
    • [email_address]
    • Follow me @
    • http://twitter.com/jaibeermalik
    • http://friendfeed.com/jaibeermalik
    Jaibeer Malik Enterprise Flex using Cairngorm http://jaibeermalik.wordpress.com