Interface ExecutionStrategy
-
- All Known Implementing Classes:
DefaultExecutionStrategy
,MethodExecutionStrategy
public interface ExecutionStrategy
The 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.Object
execute(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.ScriptException
Executes a method on an object instance, or a static method if the specified instance isnull
.- Parameters:
instance
- the object instance to be executed ornull
to execute a static method- Returns:
- the return value of the method, or
null
- Throws:
javax.script.ScriptException
- if no method to execute was found
-
-