Interface ExecutionStrategy

All Known Implementing Classes:
DefaultExecutionStrategy, MethodExecutionStrategy

public interface ExecutionStrategy
The strategy used to execute a method on an object instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(Object instance)
    Executes a method on an object instance, or a static method if the specified instance is null.
  • Method Details

    • execute

      Object execute(Object instance) throws ScriptException
      Executes a method on an object instance, or a static method if the specified instance is null.
      Parameters:
      instance - the object instance to be executed or null to execute a static method
      Returns:
      the return value of the method, or null
      Throws:
      ScriptException - if no method to execute was found