public interface MethodExecutor
They can become stale, and in that case should throw an AccessException: This will cause the infrastructure to go back to the resolvers to ask for a new one.
Modifier and Type | Method and Description |
---|---|
TypedValue |
execute(EvaluationContext context,
Object target,
Object... arguments)
Execute a command using the specified arguments, and using the specified expression state.
|
TypedValue execute(EvaluationContext context, Object target, Object... arguments) throws AccessException
context
- the evaluation context in which the command is being executedtarget
- the target object of the call - null for static methodsarguments
- the arguments to the executor, should match (in terms of number
and type) whatever the command will need to runAccessException
- if there is a problem executing the command or the
MethodExecutor is no longer valid