Package dev.openfunction.functions
Interface Hook
-
public interface Hook
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Errorexecute(Context ctx)execute executes the hook.Hookinit()init will create a new plugin, and execute hook in this calling.java.lang.Stringname()name return the name of this plugin.java.lang.BooleanneedToTracing()java.util.Map<java.lang.String,java.lang.String>tagsAddToTracing()java.lang.Stringversion()version return the version of this plugin.
-
-
-
Method Detail
-
name
java.lang.String name()
name return the name of this plugin.- Returns:
- Plugin name
-
version
java.lang.String version()
version return the version of this plugin.- Returns:
- Plugin name
-
init
Hook init()
init will create a new plugin, and execute hook in this calling. If you do not want to use a new plugin to execute hook, just return `this`.- Returns:
- Plugin
-
execute
java.lang.Error execute(Context ctx)
execute executes the hook.- Parameters:
ctx- Runtime context- Returns:
- error
-
needToTracing
java.lang.Boolean needToTracing()
-
tagsAddToTracing
java.util.Map<java.lang.String,java.lang.String> tagsAddToTracing()
-
-