flex and cold spring
TRANSCRIPT
Flex and ColdFusion the Easy Way with ColdSpring
Adobe Developers of Greater Orlandohttp://adogo.usAugust 2007
Developing a service layer that can be used by Flex, Ajax and ColdFusion.
What's this ColdSpring thing?● Most used ColdFusion
framework.● Used for managing
your dependencies of CFCs.
● Can be used with other frameworks like Fusebox, Model-Glue or Reactor.
● Inversion of Control, Aspect Oriented Programming
Why use ColdSpring?
● Better control over your objects
● Simplifies Object Creation
● Enforces good practices
● Lots of free features● Single config file● Offers a single
extension point
Application Design Goal
● Offer a single point of extension for any external services.
● Be able to easily extend our application for new mediums.
● Need ability to alter behavior and return types for different extension points.
● Complete division between the view and the model.
Application Example?
Flex ColdFusion Ajax
ServiceManager
UserService ProductService CartService
Little Problem
● All services can't use the same data.● Need a way to extend the service manager and add
specific rules for each external system.● The solution, ColdSpring Remoting!
Adjusted Application Design
Flex ColdFusion Ajax
ServiceManager
UserService ProductService CartService
FlexDelegateFlexDelegate AjaxDelegate
How does that Work?
● Code example
Thanks!
Resources:
ColdSpring - http://www.coldspringframework.org/
Possible Metadata Addition - http://www.briankotek.com/blog/index.cfm/2007/7/12/ColdSpring-Mad-Science-Injecting-Metadata-for-use-in-AOP-and-Proxy-Generation
ColdSpring AOP - http://cdscott.blogspot.com/2005/10/coldspring-aop-tutorial-part-one.html
Code available at http://svn.adogo.us