summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2016-10-28 08:46:30 +0300
committerGitHub <noreply@github.com>2016-10-28 08:46:30 +0300
commitd43d37baf2f57cf17dfc770038688c6a8c189642 (patch)
treeff2ac649d0ea2a9b06d393124dc65c0193a75b7c /README.md
parent3ff450786a0aef1752647ad1afdc566a73901143 (diff)
downloadpf4j-d43d37baf2f57cf17dfc770038688c6a8c189642.tar.gz
pf4j-d43d37baf2f57cf17dfc770038688c6a8c189642.zip
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index cc73dc6..e0114e2 100644
--- a/README.md
+++ b/README.md
@@ -126,6 +126,8 @@ Plugin-Version: 0.0.1
In above manifest I described a plugin with id `welcome-plugin`, with class `ro.fortsoft.pf4j.demo.welcome.WelcomePlugin`, with version `0.0.1` and with dependencies
to plugins `x, y, z`.
+**NOTE:** The plugin version must be compliant with [Semantic Versioning](http://semver.org) (PF4J uses `jsemver` as implementation for SemVer because it comes with support for comparing versions)
+
You can define an extension point in your application using **ExtensionPoint** interface marker.
```java
@@ -399,7 +401,10 @@ For example if I want to use `ServiceProviderExtensionStorage` then the value fo
not added/enabled by default. To do this please override `createExtensionFinder` from `DefaultPluginManager`:
```java
protected ExtensionFinder createExtensionFinder() {
- return ((DefaultExtensionFinder) super.createExtensionFinder()).addServiceProviderExtensionFinder();
+ DefaultExtensionFinder extensionFinder = super.createExtensionFinder();
+ extensionFinder.addServiceProviderExtensionFinder();
+
+ return extensionFinder;
}
```