flex and cold spring

9
Flex and ColdFusion the Easy Way with ColdSpring Adobe Developers of Greater Orlando http://adogo.us August 2007 Developing a service layer that can be used by Flex, Ajax and ColdFusion.

Upload: adam-fortuna

Post on 18-Jul-2015

1.020 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Flex And Cold Spring

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.

Page 2: Flex And Cold Spring

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

Page 3: Flex And Cold Spring

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

Page 4: Flex And Cold Spring

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.

Page 5: Flex And Cold Spring

Application Example?

Flex ColdFusion Ajax

ServiceManager

UserService ProductService CartService

Page 6: Flex And Cold Spring

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!

Page 7: Flex And Cold Spring

Adjusted Application Design

Flex ColdFusion Ajax

ServiceManager

UserService ProductService CartService

FlexDelegateFlexDelegate AjaxDelegate

Page 8: Flex And Cold Spring

How does that Work?

● Code example

Page 9: Flex And Cold Spring

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