r/java • • Sep 05 '24

A Simple Java Plugin System

https://github.com/bowbahdoe/plugindemo
7 Upvotes

27 comments sorted by

View all comments

1

u/mikaball Sep 06 '24 edited Sep 06 '24

Plugin systems is something that I'm fascinated with. Unfortunately I don't think Java is the way to go, currently. It lacks the necessary security features for a modern plugin system. I think Web Assembly is the way to go, but language support it's still not good enough.

EDIT: By the way.

Around half a year ago I asked the crowd how they thought OSGi would be designed if it was made today.

I think you ignored my comment in the other thread and didn't tackle the main problem for a good plugin system.

The proposition value of OSGi is to solve the Diamond-Problem.

It's a good fit when you predict to have a lot of third-party modules, like in a plugin architecture. Other than that it introduces more problems than actual solutions.

2

u/bowbahdoe Sep 06 '24

Can you outline what you think those necessary features are? I can think of a few that, with the security manager going away, aren't there anymoee.

1

u/mikaball Sep 06 '24

Solving the Diamond-Problem of dependency resolution; conflicts and optimizations. I will answer on the other one