Package dev.openfunction.functions
Interface Plugin
-
@Deprecated public interface Plugin
Deprecated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.ErrorexecPostHook(Context ctx)Deprecated.execPreHook executes a hook after the function called.java.lang.ErrorexecPreHook(Context ctx)Deprecated.execPreHook executes a hook before the function called.java.lang.ObjectgetField(java.lang.String fieldName)Deprecated.get return the value of the fieldName`Plugininit()Deprecated.init will create a new plugin, and execute hook in this calling.java.lang.Stringname()Deprecated.name return the name of this plugin.java.lang.BooleanneedToTracing()Deprecated.java.util.Map<java.lang.String,java.lang.String>tagsAddToTracing()Deprecated.java.lang.Stringversion()Deprecated.version return the version of this plugin.
-
-
-
Method Detail
-
name
java.lang.String name()
Deprecated.name return the name of this plugin.- Returns:
- Plugin name
-
version
java.lang.String version()
Deprecated.version return the version of this plugin.- Returns:
- Plugin name
-
init
Plugin init()
Deprecated.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
-
execPreHook
java.lang.Error execPreHook(Context ctx)
Deprecated.execPreHook executes a hook before the function called.- Parameters:
ctx- Runtime context- Returns:
- error
-
execPostHook
java.lang.Error execPostHook(Context ctx)
Deprecated.execPreHook executes a hook after the function called.- Parameters:
ctx- Runtime context- Returns:
- error
-
getField
java.lang.Object getField(java.lang.String fieldName)
Deprecated.get return the value of the fieldName`- Parameters:
fieldName- Name of member- Returns:
- Object
-
needToTracing
java.lang.Boolean needToTracing()
Deprecated.
-
tagsAddToTracing
java.util.Map<java.lang.String,java.lang.String> tagsAddToTracing()
Deprecated.
-
-