-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
144 additions
and
6 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
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
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
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
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
34 changes: 34 additions & 0 deletions
34
recaf-core/src/main/java/software/coley/recaf/services/plugin/PluginUnloader.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package software.coley.recaf.services.plugin; | ||
|
||
import jakarta.annotation.Nonnull; | ||
import software.coley.recaf.plugin.PluginException; | ||
import software.coley.recaf.plugin.PluginInfo; | ||
|
||
import java.util.stream.Stream; | ||
|
||
/** | ||
* Plugin unload action. | ||
* @author xDark | ||
*/ | ||
public interface PluginUnloader { | ||
|
||
/** | ||
* Unloads the plugins. | ||
* @throws PluginException | ||
* If any of the plugins failed to unload. | ||
*/ | ||
void commit() throws PluginException; | ||
|
||
/** | ||
* @return Plugin to be unloaded. | ||
*/ | ||
@Nonnull | ||
PluginInfo unloadingPlugin(); | ||
|
||
/** | ||
* @return A collection of plugins that depend on the plugin to be unloaded. | ||
* @apiNote These plugins will also get unloaded. | ||
*/ | ||
@Nonnull | ||
Stream<PluginInfo> dependants(); | ||
} |
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