org.springframework.context.expression

Class 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
    • Constructor Detail

      • MethodBasedEvaluationContext

        public MethodBasedEvaluationContext(java.lang.Object rootObject,
                                            java.lang.reflect.Method method,
                                            java.lang.Object[] arguments,
                                            ParameterNameDiscoverer parameterNameDiscoverer)
    • Method Detail

      • lazyLoadArguments

        protected void lazyLoadArguments()
        Load the param information only when needed.