MethodExecutor is built by a MethodResolver and can be cached
by the infrastructure to repeat an operation quickly without going back to the
resolvers.
For example, the particular method to execute on an object may be discovered
by a MethodResolver which then builds a MethodExecutor that
executes that method, and the resolved MethodExecutor can be reused
without needing to go back to the resolvers to discover the method again.
If a MethodExecutor becomes stale, it should throw an
AccessException which signals to the infrastructure to go back to the
resolvers to ask for a new one.
MethodResolver, ConstructorExecutor
| Modifier and Type | Method and Description |
|---|---|
| public TypedValue | Returns: the value returned from the methodthe evaluation context in which the method is being executed context, Object the target of the method invocation; may be target, Object... null for
static methodsthe arguments to the method; should match (in terms of
number and type) whatever the method will need to run arguments)Execute a method in the specified context using the specified arguments. |
| execute | back to summary |
|---|---|
| public TypedValue execute(EvaluationContext context, Object target, Object... arguments) throws AccessException Execute a method in the specified context using the specified arguments.
| |