diff --git a/src/main/java/run/halo/editor/HybridEditBlockPlugin.java b/src/main/java/run/halo/editor/HybridEditBlockPlugin.java index 32814f0..ed16382 100644 --- a/src/main/java/run/halo/editor/HybridEditBlockPlugin.java +++ b/src/main/java/run/halo/editor/HybridEditBlockPlugin.java @@ -1,23 +1,14 @@ package run.halo.editor; -import org.pf4j.PluginWrapper; import org.springframework.stereotype.Component; + import run.halo.app.plugin.BasePlugin; +import run.halo.app.plugin.PluginContext; @Component public class HybridEditBlockPlugin extends BasePlugin { - public HybridEditBlockPlugin(PluginWrapper wrapper) { - super(wrapper); - } - - @Override - public void start() { - System.out.println("插件启动成功!"); - } - - @Override - public void stop() { - System.out.println("插件停止!"); + public HybridEditBlockPlugin(PluginContext context) { + super(context); } }