What is the relationship between OSGi and Dependency Injection
dependency-injection, java, osgi
Solution
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.
Problem
What are they of each other? - Specification and implementation? - Competitors? - Unrelated?