Class JavaFunctionInvoker

java.lang.Object
org.smartparam.engine.functions.java.AbstractJavaFunctionInvoker
org.smartparam.engine.functions.java.JavaFunctionInvoker
All Implemented Interfaces:
FunctionInvoker

public class JavaFunctionInvoker extends AbstractJavaFunctionInvoker
Author:
Adam Dubiel
  • Constructor Details

    • JavaFunctionInvoker

      public JavaFunctionInvoker()
  • Method Details

    • invoke

      public Object invoke(Function function, Object... args)
      Description copied from interface: FunctionInvoker
      Invoke function, it is a good practice to wrap any outgoing exceptions with SmartParamException with FUNCTION_INVOKE_ERROR reason.
      Parameters:
      function - description of function to invoke
      args - arguments
      Returns:
      evaluated value (can be null)