Interface IModuleCallbackProvider


public interface IModuleCallbackProvider
Interface for script function callbacks. Such callbacks can be registered for any method and allow to execute arbitrary code before and/or after a method invocation from a module.
  • Method Details

    • hasPreExecutionCallback

      boolean hasPreExecutionCallback​(Method method)
      Check if the provider has a pre execution callback for the given method.
      Parameters:
      method - method to look up
      Returns:
      true if a pre execution callback is provided
    • hasPostExecutionCallback

      boolean hasPostExecutionCallback​(Method method)
      Check if the provider has a post execution callback for the given method.
      Parameters:
      method - method to look up
      Returns:
      true if a post execution callback is provided
    • preExecutionCallback

      void preExecutionCallback​(Method method, Object[] parameters)
      Actual callback before the method gets executed.
      Parameters:
      method - method that triggers callback
      parameters - method call parameters
    • postExecutionCallback

      void postExecutionCallback​(Method method, Object result)
      Actual callback after the method got executed.
      Parameters:
      method - method that triggers callback