mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /area core /milestone 2.17.x #### What this PR does / why we need it: This PR add support for allowing plugin to listen the event that the plugin has started. Below is an example of listening the event in plugin: ```java @EventListener void onPluginStartedEvent(PluginStartedEvent event) { // do something. } ``` See https://github.com/halo-dev/halo/issues/5339#issuecomment-2199220068 for more. #### Which issue(s) this PR fixes: Fixes https://github.com/halo-dev/halo/issues/5339#issuecomment-2199220068 #### Special notes for your reviewer: 1. Create a plugin, add the listener above and write some logs 2. Build and install the plugin 3. Start plugin and see the logs you wrote #### Does this PR introduce a user-facing change? ```release-note 支持在插件中监听已启动事件 ``` |
||
---|---|---|
.. | ||
src | ||
build.gradle |