Class MethodBasedEvaluationContext

java.lang.Object
org.springframework.expression.spel.support.StandardEvaluationContext
org.springframework.context.expression.MethodBasedEvaluationContext
All Implemented Interfaces:
EvaluationContext

public class MethodBasedEvaluationContext extends StandardEvaluationContext
A method-based EvaluationContext that provides explicit support for method-based invocations.

Expose the actual method arguments using the following aliases:

  1. pX where X is the index of the argument (p0 for the first argument)
  2. aX where X is the index of the argument (a1 for the second argument)
  3. the name of the parameter as discovered by a configurable ParameterNameDiscoverer
Since:
4.2
Author:
Stephane Nicoll, Juergen Hoeller, Sebastien Deleuze