Interface Hook


  • public interface Hook
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Error execute​(Context ctx)
      execute executes the hook.
      Hook init()
      init will create a new plugin, and execute hook in this calling.
      java.lang.String name()
      name return the name of this plugin.
      java.lang.Boolean needToTracing()  
      java.util.Map<java.lang.String,​java.lang.String> tagsAddToTracing()  
      java.lang.String version()
      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
      • tagsAddToTracing

        java.util.Map<java.lang.String,​java.lang.String> tagsAddToTracing()