2. Agenda
1. Inversion of Control (IoC)
2. Dependency Injection (DI)
3. Service Locator
4. Discussion
5. Demo
6. Service Locator in Sharepont 2010
7. Service Locator in Domea
3. • The main control of the program was inverted, moved
away from you to the framework.
• In Console app:
print "enter your name"
read name
print "enter your address"
read address
etc...
store in database
Inversion of Control (IoC)
4. • GUI App
when the user types in field a, store it in NAME
when the user types in field b, store it in ADDRESS
when the user clicks the save button, call StoreInDatabase
=> Control is inverted
IoC
7. DI
• DI is a subtype of IOC and is implemented by
constructor injection, setter injection or method
injection
8. Service Locator
The service locator pattern is a design pattern used in software
development to encapsulate the processes involved in obtaining a service
with a strong abstraction layer
9. DEMO
1. Setup IoC Container
2. Register services (components)
3. Using components
Thank you for the opportunity to meet with you today. Before I tell you a little bit about Ciber, I want to explain Ciber’s approach to doing business. We don’t see ourselves as just another consultant or technology vendor. We see ourselves as partners, and that impacts everything we do.