SlideShare a Scribd company logo
Introduction to Dependency Injection using Spring.NET Ryan Montgomery
So why Spring.NET? We use more than IoC. Well documented. Large community. A proven framework. Supported.
Spring.Core IoC is the heart of spring. Additional Features Expression Language Validation Framework Data binding Framework Dynamic Reflection Threading Resource abstraction
What is Inversion of Control? Hollywood Principle. “ Don't call us, we'll call you.” Dependency Injection Service Locator
What is Dependency Injection? “ Dependency injection is a style of object configuration in which an objects fields and collaborators are set by an external entity. In other words  objects are configured by an external entity . Dependency injection is an alternative to having the object configure itself.” Jenkov Aps
DAO Refactor 0
DAO Refactor 0
DAO Refactor 1
DAO Refactor 2
Biz Component
Biz Component
Spring IoC Container Responsible for the Instantiation and Injection of dependencies based on configuration. The IObjectFactory is the actual representation of the Spring IoC container. The most commonly used IObjectFactory implementation is the XmlObjectFactory class.
Demo This demonstration is based on the Movie Finder example in Spring.NET.
Contact Information Ryan Montgomery Blog http://rmontgomery429.blogspot.com Email [email_address] Rapidparts Inc. Site http://www.rpionline.com Blog http://blogs.rpionline.com
References Spring.NET Framework Chapter 5. The IoC container http://www.springframework.net/doc-latest/reference/html/objects.html Martin Fowler Inversion of Control Containers and the Dependency Injection pattern http://martinfowler.com/articles/injection.html Jenkov What is Dependency Injection http://tutorials.jenkov.com/dependency-injection/index.html
Parking Lot

More Related Content

PPTX
Dependency Injection And Ioc Containers
PPT
Dependency Injection & IoC
DOCX
Dependency injection& comparative study
PPTX
Spring IOC and DAO
PPT
Spring overview & architecture
PPTX
Oleksandr Valetskyy - Become a .NET dependency injection ninja with Ninject
PPTX
Choosing an IoC container
PPTX
Dependency Injection and Autofac
Dependency Injection And Ioc Containers
Dependency Injection & IoC
Dependency injection& comparative study
Spring IOC and DAO
Spring overview & architecture
Oleksandr Valetskyy - Become a .NET dependency injection ninja with Ninject
Choosing an IoC container
Dependency Injection and Autofac

Viewers also liked (8)

PPS
Alucina2
PPT
grade gaps
PPS
Tribusdejefes
PPS
George Grie Neosurrealism
PPT
Beautiful places - Part 2
PPS
Redes
PDF
Flyer Benefizkonzert
PPT
PresentacióN199999
Alucina2
grade gaps
Tribusdejefes
George Grie Neosurrealism
Beautiful places - Part 2
Redes
Flyer Benefizkonzert
PresentacióN199999
Ad

Similar to Introduction To Dependency Injection Using Spring.NET (20)

PPTX
Spring session
PPTX
Introduction to Spring sec1.pptx
PPTX
Dependency Inversion Principle
PPTX
The Spring Framework: A brief introduction to Inversion of Control
PDF
Swiz DAO
PPT
Spring IOC
PPT
Spring io c
PPTX
Spring framework
PDF
springtraning-7024840-phpapp01.pdf
ODP
Dependency injection explained (Zbigniew Lukasiak)
PPTX
Brownbag001 spring ioc from 2012
PPTX
Dependency Inversion in large-scale TypeScript applications with InversifyJS
PPTX
Poco Es Mucho: WCF, EF, and Class Design
PPTX
Introduction to Spring Framework
 
PDF
Spring Framework
PPTX
An Introduction to Dependency Inversion Principle
PPT
Gnizr Architecture (for developers)
PPT
Ef Poco And Unit Testing
PPSX
Spring - Part 1 - IoC, Di and Beans
PPTX
Dependency injection with unity 2.0 Dmytro Mindra Lohika
Spring session
Introduction to Spring sec1.pptx
Dependency Inversion Principle
The Spring Framework: A brief introduction to Inversion of Control
Swiz DAO
Spring IOC
Spring io c
Spring framework
springtraning-7024840-phpapp01.pdf
Dependency injection explained (Zbigniew Lukasiak)
Brownbag001 spring ioc from 2012
Dependency Inversion in large-scale TypeScript applications with InversifyJS
Poco Es Mucho: WCF, EF, and Class Design
Introduction to Spring Framework
 
Spring Framework
An Introduction to Dependency Inversion Principle
Gnizr Architecture (for developers)
Ef Poco And Unit Testing
Spring - Part 1 - IoC, Di and Beans
Dependency injection with unity 2.0 Dmytro Mindra Lohika
Ad

Recently uploaded (20)

PDF
How to Get Business Funding for Small Business Fast
DOCX
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
DOCX
unit 1 COST ACCOUNTING AND COST SHEET
PDF
Laughter Yoga Basic Learning Workshop Manual
PDF
Katrina Stoneking: Shaking Up the Alcohol Beverage Industry
PPTX
HR Introduction Slide (1).pptx on hr intro
PPTX
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
PDF
Chapter 5_Foreign Exchange Market in .pdf
PPTX
Amazon (Business Studies) management studies
PPTX
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
PDF
Training And Development of Employee .pdf
PPT
340036916-American-Literature-Literary-Period-Overview.ppt
PDF
IFRS Notes in your pocket for study all the time
PDF
Solara Labs: Empowering Health through Innovative Nutraceutical Solutions
PPTX
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
PPTX
5 Stages of group development guide.pptx
PDF
How to Get Funding for Your Trucking Business
PDF
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
PDF
Roadmap Map-digital Banking feature MB,IB,AB
PPTX
AI-assistance in Knowledge Collection and Curation supporting Safe and Sustai...
How to Get Business Funding for Small Business Fast
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
unit 1 COST ACCOUNTING AND COST SHEET
Laughter Yoga Basic Learning Workshop Manual
Katrina Stoneking: Shaking Up the Alcohol Beverage Industry
HR Introduction Slide (1).pptx on hr intro
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
Chapter 5_Foreign Exchange Market in .pdf
Amazon (Business Studies) management studies
job Avenue by vinith.pptxvnbvnvnvbnvbnbmnbmbh
Training And Development of Employee .pdf
340036916-American-Literature-Literary-Period-Overview.ppt
IFRS Notes in your pocket for study all the time
Solara Labs: Empowering Health through Innovative Nutraceutical Solutions
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
5 Stages of group development guide.pptx
How to Get Funding for Your Trucking Business
BsN 7th Sem Course GridNNNNNNNN CCN.pdf
Roadmap Map-digital Banking feature MB,IB,AB
AI-assistance in Knowledge Collection and Curation supporting Safe and Sustai...

Introduction To Dependency Injection Using Spring.NET

  • 1. Introduction to Dependency Injection using Spring.NET Ryan Montgomery
  • 2. So why Spring.NET? We use more than IoC. Well documented. Large community. A proven framework. Supported.
  • 3. Spring.Core IoC is the heart of spring. Additional Features Expression Language Validation Framework Data binding Framework Dynamic Reflection Threading Resource abstraction
  • 4. What is Inversion of Control? Hollywood Principle. “ Don't call us, we'll call you.” Dependency Injection Service Locator
  • 5. What is Dependency Injection? “ Dependency injection is a style of object configuration in which an objects fields and collaborators are set by an external entity. In other words objects are configured by an external entity . Dependency injection is an alternative to having the object configure itself.” Jenkov Aps
  • 12. Spring IoC Container Responsible for the Instantiation and Injection of dependencies based on configuration. The IObjectFactory is the actual representation of the Spring IoC container. The most commonly used IObjectFactory implementation is the XmlObjectFactory class.
  • 13. Demo This demonstration is based on the Movie Finder example in Spring.NET.
  • 14. Contact Information Ryan Montgomery Blog http://rmontgomery429.blogspot.com Email [email_address] Rapidparts Inc. Site http://www.rpionline.com Blog http://blogs.rpionline.com
  • 15. References Spring.NET Framework Chapter 5. The IoC container http://www.springframework.net/doc-latest/reference/html/objects.html Martin Fowler Inversion of Control Containers and the Dependency Injection pattern http://martinfowler.com/articles/injection.html Jenkov What is Dependency Injection http://tutorials.jenkov.com/dependency-injection/index.html

Editor's Notes

  • #2: Hello. Thank you all for being here. My name is Ryan Montgomery. I am a Senior .NET Applications Developer at Rapidparts Inc. over in Walker, MI. which is on the West Side of Grand Rapids. Rapidparts sells aftermarket forklift parts through the web, so our team of developers creates and maintains many web applications. We’re pretty much a Microsoft shop, except for a few areas where we utilize other frameworks and products to make our applications better and our jobs easier. One of those frameworks is Spring.NET.