Interface ExecutionStrategy
-
- All Known Implementing Classes:
DefaultExecutionStrategy,MethodExecutionStrategy
public interface ExecutionStrategyThe strategy used to execute a method on an object instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectexecute(java.lang.Object instance)Executes a method on an object instance, or a static method if the specified instance isnull.
-
-
-
Method Detail
-
execute
java.lang.Object execute(java.lang.Object instance) throws javax.script.ScriptExceptionExecutes a method on an object instance, or a static method if the specified instance isnull.- Parameters:
instance- the object instance to be executed ornullto execute a static method- Returns:
- the return value of the method, or
null - Throws:
javax.script.ScriptException- if no method to execute was found
-
-