Alex Rivera | Logout

What is the relationship between OSGi and Dependency Injection

Asked 2009-08-31T12:51:05.160
11

What are they of each other?

  • Specification and implementation?
  • Competitors?
  • Unrelated?
Edit
Report

1 Answer

10

They are unrelated.

Edit:

DI is a conecpt first described by Martin Fowler, OSGi is a module system for Java that implements a complete and dynamic component model specified by the OSGi Alliance.

  • DI can be used in languages different from Java, OSGi is specific to Java
  • OSGi tries to solve the problem of versioned components, DI is an alternative to the old Service Locator pattern.
answered 2009-08-31T12:52:24.977

Your Answer