diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2023-01-30 20:36:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 20:36:47 +0200 |
commit | 1f04209be1769e40c730cf2701926611e2f85435 (patch) | |
tree | d824ef5c8dd93264a4b99ed9bf3704540d73ce76 /demo/plugins/plugin2 | |
parent | de63736b13a71c227c1dec95e8e39c95a3962870 (diff) | |
download | pf4j-1f04209be1769e40c730cf2701926611e2f85435.tar.gz pf4j-1f04209be1769e40c730cf2701926611e2f85435.zip |
Relax Plugin construction (remove dependency on PluginWrapper) (#512)
Diffstat (limited to 'demo/plugins/plugin2')
-rw-r--r-- | demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java b/demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java index 3b7c9ce..ed67878 100644 --- a/demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java +++ b/demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java @@ -16,19 +16,19 @@ package org.pf4j.demo.hello; import org.pf4j.Extension; -import org.pf4j.Plugin; -import org.pf4j.PluginWrapper; +import org.pf4j.demo.api.DemoPlugin; import org.pf4j.demo.api.Greeting; +import org.pf4j.demo.api.PluginContext; /** * A very simple plugin. * * @author Decebal Suiu */ -public class HelloPlugin extends Plugin { +public class HelloPlugin extends DemoPlugin { - public HelloPlugin(PluginWrapper wrapper) { - super(wrapper); + public HelloPlugin(PluginContext context) { + super(context); } @Override |