aboutsummaryrefslogtreecommitdiffstats
path: root/demo
diff options
context:
space:
mode:
authordre4merp <40335717+dre4merp@users.noreply.github.com>2023-04-28 15:41:40 +0800
committerGitHub <noreply@github.com>2023-04-28 10:41:40 +0300
commitbdadc6667ae1e09b2fb062987671f8e70830e3c5 (patch)
tree5ddfb52895ac6e080f9e7899566fc8d3002c051a /demo
parent2eb8d7809bc1ce8eb3ec175e02d71cd9e05206a5 (diff)
downloadpf4j-bdadc6667ae1e09b2fb062987671f8e70830e3c5.tar.gz
pf4j-bdadc6667ae1e09b2fb062987671f8e70830e3c5.zip
Fix #524 (#525)
Diffstat (limited to 'demo')
-rw-r--r--demo/app/src/main/java/org/pf4j/demo/DemoPluginFactory.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/demo/app/src/main/java/org/pf4j/demo/DemoPluginFactory.java b/demo/app/src/main/java/org/pf4j/demo/DemoPluginFactory.java
index 432dceb..bdae2d6 100644
--- a/demo/app/src/main/java/org/pf4j/demo/DemoPluginFactory.java
+++ b/demo/app/src/main/java/org/pf4j/demo/DemoPluginFactory.java
@@ -15,15 +15,18 @@
*/
package org.pf4j.demo;
+import java.lang.reflect.Constructor;
import org.pf4j.DefaultPluginFactory;
import org.pf4j.Plugin;
import org.pf4j.PluginWrapper;
import org.pf4j.demo.api.PluginContext;
-
-import java.lang.reflect.Constructor;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
class DemoPluginFactory extends DefaultPluginFactory {
+ private static final Logger log = LoggerFactory.getLogger(DemoPluginFactory.class);
+
@Override
protected Plugin createInstance(Class<?> pluginClass, PluginWrapper pluginWrapper) {
PluginContext context = new PluginContext(pluginWrapper.getRuntimeMode());