aboutsummaryrefslogtreecommitdiffstats
path: root/demo/app/src
diff options
context:
space:
mode:
authorDecebal Suiu <decebal.suiu@gmail.com>2017-02-16 23:06:02 +0200
committerDecebal Suiu <decebal.suiu@gmail.com>2017-02-16 23:06:02 +0200
commite8d5b8eebf2207194685dc66af72917cbba11ecf (patch)
tree552b76e782cc6c2499cbcc0bb3926c3f988efdd3 /demo/app/src
parent8bb6410957917df04ac4d9a962308b15d2ad7a8a (diff)
downloadpf4j-e8d5b8eebf2207194685dc66af72917cbba11ecf.tar.gz
pf4j-e8d5b8eebf2207194685dc66af72917cbba11ecf.zip
Reactivate protection against the issues similar with #97
Diffstat (limited to 'demo/app/src')
-rw-r--r--demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java4
-rw-r--r--demo/app/src/main/resources/log4j.properties2
2 files changed, 4 insertions, 2 deletions
diff --git a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java b/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java
index fa779e2..c6ecec3 100644
--- a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java
+++ b/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java
@@ -21,6 +21,7 @@ import java.util.Set;
import org.apache.commons.lang.StringUtils;
import ro.fortsoft.pf4j.DefaultPluginManager;
+import ro.fortsoft.pf4j.JarPluginManager;
import ro.fortsoft.pf4j.PluginManager;
import ro.fortsoft.pf4j.PluginWrapper;
import ro.fortsoft.pf4j.demo.api.Greeting;
@@ -37,7 +38,8 @@ public class Boot {
printLogo();
// create the plugin manager
- final PluginManager pluginManager = new DefaultPluginManager();
+// final PluginManager pluginManager = new DefaultPluginManager();
+ final PluginManager pluginManager = new JarPluginManager();
// load the plugins
pluginManager.loadPlugins();
diff --git a/demo/app/src/main/resources/log4j.properties b/demo/app/src/main/resources/log4j.properties
index 0454ba2..692e39b 100644
--- a/demo/app/src/main/resources/log4j.properties
+++ b/demo/app/src/main/resources/log4j.properties
@@ -5,7 +5,7 @@ log4j.rootLogger=DEBUG, Console
#
log4j.logger.ro.fortsoft.pf4j=DEBUG, Console
# !!! Put the bellow classes on level TRACE when you are in trouble
-log4j.logger.ro.fortsoft.pf4j.PluginClassLoader=WARN, Console
+log4j.logger.ro.fortsoft.pf4j.PluginClassLoader=DEBUG, Console
log4j.logger.ro.fortsoft.pf4j.AbstractExtensionFinder=DEBUG, Console
log4j.additivity.ro.fortsoft.pf4j=false
log4j.additivity.ro.fortsoft.pf4j.PluginClassLoader=false