Click here to Skip to main content
12,359,102 members (36,019 online)
Click here to Skip to main content

Stats

52.7K views
594 downloads
64 bookmarked
Posted

Dependency Injection Frameworks - Part 1 - Introduction

, 12 Jun 2008 CPOL
An introduction to the dependency injection design pattern and frameworks, illustrated by a simple example.
SpringDotNETExample
bin
Debug
antlr.runtime.dll
Common.Logging.dll
Spring.Core.dll
SpringDotNETExample.exe
SpringDotNETExample.vshost.exe
SpringDotNETExample.vshost.exe.manifest
Properties
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  
  <configSections>
    <sectionGroup name="spring">
      <section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core" />
      <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
    </sectionGroup>
  </configSections>
  
  <spring>
    <context>
      <resource uri="config://spring/objects"/>
    </context>
    <objects xmlns="http://www.springframework.net">
      <description>An example that demonstrates simple IoC features.</description>
      <object name="ISayHelloInterface" type="SpringDotNETExample.WorldSayHello, SpringDotNETExample"/>        
    </objects>
  </spring>
  
  
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Ashish Kaila
Software Developer (Senior) MixModes Inc. | Research In Motion
Canada Canada
Ashish worked for Microsoft for a number of years in Microsoft Visual Studio (Architect edition) and Windows Live division as a developer. Before that he was a developer consultant mainly involved in distributed service development / architecture. His main interests are distributed software architecture, patterns and practices and mobile device development.

Currently Ashish serves as a Technical Lead at RIM leading next generation BlackBerry media experience and also runs his own company MixModes Inc. specializing in .NET / WPF / Silverlight technologies. You can visit MixModes at http://mixmodes.com or follow it on Twitter @MixModes

In his free time he is an avid painter, hockey player and enjoys travelling. His blog is at: http://ashishkaila.serveblog.net

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 12 Jun 2008
Article Copyright 2008 by Ashish Kaila
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid