pf4j / pf4j-update

Update mechanism for PF4J
Apache License 2.0
69 stars 39 forks source link

Changes updatePlugin signature to id,version #23

Closed janhoy closed 7 years ago

janhoy commented 7 years ago

This is a followup from #18

Adds PluginException to both updatePlugin and installPlugin for better error flow. The client can write code, loops etc without null-checks such as if (!installPlugin(foo,"1.0.0")) ... but instead get a problem description in the exception that could also be displayed in a GUI. Now you only get a true/false and must check logs to see why the install/update failed. What do you think?

Also adds support for installing/updating to latest version by setting version=null.

decebals commented 7 years ago

Perfect. Thanks!