Social Icons

twitterfacebookgoogle pluslinkedinrss feedemail
Showing posts with label Service Locator. Show all posts
Showing posts with label Service Locator. Show all posts

Saturday, November 24, 2012

Dependency Injection and Service Locator

Dependency injection is a interface programing technique which is based on altering class behavior without the changing the class internals. That's been done by coding against interface inside of the class and exposing interface definition to code external to the component. There are three types (different techniques) of making dependency injection: constructor DI, setter DI and interface DI.

Service locator is a design pattern similar to dependency injection in a meaning that allows altering the class behavior without altering the class code by coding against the interface inside of the class. The difference is that there's no direct exposure of interface to code outside of the class. Instead class is using "well known object" inside, to get from it desired interface implementation.

Read More...

I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to
C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Dependency Injection, Service Locator
There was an error in this gadget
 
Get Twitter Fan Box Widget

Like Us On Facebook and Receive All Updates!

You can also receive Free Email Updates:

Powered By Tutorails

Followers