aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2022-06-30 01:51:57 +0300
committerDecebal Suiu <decebal.suiu@gmail.com>2022-06-30 01:51:57 +0300
commitc36ab8f1d53286899828e7756bd85228d789239e (patch)
tree3f26a85dc2e01a94dbb3e2b547e42ca4ee7f0d59
parentdacbda1a233291d74545b6e9b3a85fb148236a6c (diff)
downloadpf4j-c36ab8f1d53286899828e7756bd85228d789239e.tar.gz
pf4j-c36ab8f1d53286899828e7756bd85228d789239e.zip
Make ServiceProviderExtensionFinder optional in demo (commented code)
-rw-r--r--demo/app/src/main/java/org/pf4j/demo/Boot.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/demo/app/src/main/java/org/pf4j/demo/Boot.java b/demo/app/src/main/java/org/pf4j/demo/Boot.java
index 05d30bf..524009c 100644
--- a/demo/app/src/main/java/org/pf4j/demo/Boot.java
+++ b/demo/app/src/main/java/org/pf4j/demo/Boot.java
@@ -16,9 +16,7 @@
package org.pf4j.demo;
import org.apache.commons.lang.StringUtils;
-import org.pf4j.DefaultExtensionFinder;
import org.pf4j.DefaultPluginManager;
-import org.pf4j.ExtensionFinder;
import org.pf4j.PluginManager;
import org.pf4j.PluginWrapper;
import org.pf4j.demo.api.Greeting;
@@ -132,6 +130,10 @@ public class Boot {
}
private static PluginManager createPluginManager() {
+ return new DefaultPluginManager();
+
+ // use below plugin manager instance if you want to enable ServiceProviderExtensionFinder
+ /*
return new DefaultPluginManager() {
@Override
@@ -143,6 +145,7 @@ public class Boot {
}
};
+ */
}
}