|
|
|
|
|
by pswenson
4426 days ago
|
|
I've found OSGi to be an absolute nightmare. Classloader hacks is not the way to solve Java's dependency problem, it needs to be baked in the language IMO. I think it's one of those ideas that sounds great in theory, but in reality it all falls apart. Even if it worked as advertised, fact is many 3rd party libraries have all sorts of issues with OSGi. For example, my company is stuck on Jersey 1.x because 2.x doesn't work properly with OSGi. Testing is much slower and harder to write. Testing seems to be an afterthought.... I think you can get most of the benefits of OSGi simply by using proper dependency management (Gradle). Use the Single Responsibility Principle and IoC and you'll get good modular code. These are much easer to do, have low risk, and are easy to test. JMO |
|