Search code examples
javaosgi

why osgi is used?


I want to know why OSGI framework is used when building java applications. I am searching the web for this but answers look complex to me. Can anyone please explain few points on why we need to adopt osgi.

Am sorry if the question does not suit stackoverflow I appreciate the patience of the readers. Thanks.


Solution

  • OSGi provides a modular system with versioning of the modules, and further a bit of life cycle management. It manages dependencies between modules, dynamic/lazy startup/uninstall of modules, lookup/discovery and such.

    Part of this will become part of the java language. It enables a lesser complexity than a spaghetti wiring of classes.