Interface FIntegration
public interface FIntegration
One hook into another plugin. Implementations report their name and log when they are wired up or torn down.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe logger the hook messages go to.The name of the plugin this hooks into, as written in the log.default voidhook()Wires the integration up.default voidlogHook()Logs that the integration is now active.default voidlogHookFailed(Exception exception) Logs that the integration failed to load.default voidLogs that the integration is no longer active.default voidunhook()Tears the integration down.
-
Field Details
-
HOOK_TIMEOUT
-
-
Method Details
-
getIntegrationName
String getIntegrationName()The name of the plugin this hooks into, as written in the log.- Returns:
- the plugin name
-
getFLogger
-
hook
default void hook()Wires the integration up. Override to do the work, then call the logging default. -
unhook
default void unhook()Tears the integration down. Override to do the work, then call the logging default. -
logHook
default void logHook()Logs that the integration is now active. -
logHookFailed
Logs that the integration failed to load.- Parameters:
exception- the exception that caused the failure
-
logUnhook
default void logUnhook()Logs that the integration is no longer active.
-