diff options
author | Jan Høydahl <janhoy@users.noreply.github.com> | 2017-04-20 08:00:48 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2017-04-20 09:00:48 +0300 |
commit | d20ed779decb74ce55942358da52652160d3bbc0 (patch) | |
tree | 6c3b136c244fb777a05b3167cacfbd86f870808a /README.md | |
parent | 0a0513b6634cf7ec4689a2ef88862f4d885f73c8 (diff) | |
download | pf4j-d20ed779decb74ce55942358da52652160d3bbc0.tar.gz pf4j-d20ed779decb74ce55942358da52652160d3bbc0.zip |
Refactor requires validation, Fixes #142 (#144)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -256,10 +256,14 @@ a requirement to specify a minimum system version for loading plugins. Loading & starting a newer plugin on an older system could result in runtime failures due to method signature changes or other class differences. + For this reason was added a manifest attribute (in PluginDescriptor) to specify a 'requires' version -which is a minimum system version. Also DefaultPluginManager contains a method to +which is a minimum system version on x.y.z format, or a +[SemVer Expression](https://github.com/zafarkhaja/jsemver#semver-expressions-api-ranges). +Also DefaultPluginManager contains a method to specify the system version of the plugin manager and the logic to disable -plugins on load if the system version is too old (if you want total control, please override `isPluginValid()`). This works for both `loadPlugins()` and `loadPlugin()`. +plugins on load if the system version is too old (if you want total control, +please override `isPluginValid()`). This works for both `loadPlugins()` and `loadPlugin()`. __PluginStateListener__ defines the interface for an object that listens to plugin state changes. You can use `addPluginStateListener()` and `removePluginStateListener()` from PluginManager if you want to add or remove a plugin state listener. |