Download - ColdSpring the basics
![Page 1: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/1.jpg)
ColdSpringThe Basics
![Page 2: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/2.jpg)
Ted Steinmann Lead Developer
Hospital Dev Team ImageTrend, Inc.
CF User 6 years http
://www.linkedin.com/in/tedsteinmann
![Page 3: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/3.jpg)
Questions Working on ColdSpring driven apps? Built/implemented ColdSpring? Not using ColdSpring? Using something else? Not Using components/cfcs?
![Page 4: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/4.jpg)
What Does ColdSpring Do? Object/Bean (Component) Factory
Singleton Manage Dependencies Much, much more…
![Page 5: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/5.jpg)
ColdFusion Component .cfc File containing data & functions Building blocks to CF in an OO manner
Encapsulation Inheritance Introspection
![Page 6: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/6.jpg)
What's a Singleton? Design pattern
Single instance Global access One object No State
![Page 7: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/7.jpg)
What is a Transient Object? Container
Short lived Not Persisted
![Page 9: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/9.jpg)
Dependency One piece of a
program depends on another to get it’s job done.
a state in which one object uses a functionality of another object
UserService
UserGateway
Config
![Page 10: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/10.jpg)
Dependency MVC/SOA
Dependencies between layers Dependencies between objects
ViewModelController
![Page 11: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/11.jpg)
What does that give us? Prevents duplication of code/config Separation of Concerns Modularity Encapsulation
![Page 12: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/12.jpg)
Questions?
![Page 13: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/13.jpg)
Configuration
![Page 14: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/14.jpg)
BeanFactory Container or holder for components
Instantiate Configure Resolve Dependencies
![Page 15: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/15.jpg)
Resolve Dependencies Constructor Arguments Setter Injection
![Page 16: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/16.jpg)
Before moving on… Questions on:
Dependencies? How ColdSpring injects dependencies?
![Page 17: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/17.jpg)
Additional functionality Import XML directive Dynamic Properties
![Page 18: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/18.jpg)
Others Parent Beans Factory Beans AOP Remote proxies Mock Objects Factory-post-processor
![Page 19: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/19.jpg)
Benefits of DI/IOC Separation of concerns Less coupling Configuration without changing code Components become easier to test Birds eye view of the dependencies Components are not tied to ColdSpring
![Page 20: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/20.jpg)
Cost of DI/IOC Configuration required Longer startup times Other?
![Page 21: ColdSpring the basics](https://reader036.vdocument.in/reader036/viewer/2022062514/5592a8e71a28abde548b45c6/html5/thumbnails/21.jpg)
References ColdSpring
Quickstart Reference Guide What’s new in 1.2 ColdSpring Lite Annotation-based
Dependency Injection using ColdSpring
Other Dependency Injec
tion (Martin Fowler)
ColdFusion Components
Derby DB Environment Conf
ig Object Oriented
Programming