public class DefaultExecutionStrategy extends java.lang.Object implements ExecutionStrategy
ExecutionStrategy implementation.
| Constructor and Description |
|---|
DefaultExecutionStrategy(java.lang.Class<?> clazz)
Constructs a
DefaultExecutionStrategy for the specified Class. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(java.lang.Object instance)
Executes a method on an object instance, or a static method if the specified instance is
null. |
public DefaultExecutionStrategy(java.lang.Class<?> clazz)
DefaultExecutionStrategy for the specified Class.clazz - the Classpublic java.lang.Object execute(java.lang.Object instance)
throws javax.script.ScriptException
ExecutionStrategynull.execute in interface ExecutionStrategyinstance - the object instance to be executed or null to execute a static methodnulljavax.script.ScriptException - if no method to execute was found