generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace plugin wrapper with plugin context (#136)
### What this PR does? 替换插件中对于 PluginWrapper 的引用,这是已经过时的引用,这将在后续被移除 ```release-note None ```
- Loading branch information
Showing
3 changed files
with
15 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 3 additions & 11 deletions
14
src/main/java/run/halo/comment/widget/CommentWidgetPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
package run.halo.comment.widget; | ||
|
||
import org.pf4j.PluginWrapper; | ||
import org.springframework.stereotype.Component; | ||
import run.halo.app.plugin.BasePlugin; | ||
import run.halo.app.plugin.PluginContext; | ||
|
||
/** | ||
* @author ryanwang | ||
* @since 2.0.0 | ||
*/ | ||
@Component | ||
public class CommentWidgetPlugin extends BasePlugin { | ||
public CommentWidgetPlugin(PluginWrapper wrapper) { | ||
super(wrapper); | ||
} | ||
|
||
@Override | ||
public void start() { | ||
} | ||
|
||
@Override | ||
public void stop() { | ||
public CommentWidgetPlugin(PluginContext pluginContext) { | ||
super(pluginContext); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters