class LazyParamAwareEvaluationContext extends StandardEvaluationContext
To limit the creation of objects, an ugly constructor is used (rather then a dedicated 'closure'-like class for deferred execution).
Modifier and Type | Field and Description |
---|---|
private java.lang.Object[] |
args |
private java.lang.reflect.Method |
method |
private java.util.Map<java.lang.String,java.lang.reflect.Method> |
methodCache |
private ParameterNameDiscoverer |
paramDiscoverer |
private boolean |
paramLoaded |
private java.lang.Class<?> |
targetClass |
Constructor and Description |
---|
LazyParamAwareEvaluationContext(java.lang.Object rootObject,
ParameterNameDiscoverer paramDiscoverer,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Class<?> targetClass,
java.util.Map<java.lang.String,java.lang.reflect.Method> methodCache) |
Modifier and Type | Method and Description |
---|---|
private void |
loadArgsAsVariables() |
java.lang.Object |
lookupVariable(java.lang.String name)
Load the param information only when needed.
|
private java.lang.String |
toString(java.lang.reflect.Method m) |
addConstructorResolver, addMethodResolver, addPropertyAccessor, getBeanResolver, getConstructorResolvers, getMethodResolvers, getOperatorOverloader, getPropertyAccessors, getRootObject, getTypeComparator, getTypeConverter, getTypeLocator, registerFunction, registerMethodFilter, removeConstructorResolver, removeMethodResolver, removePropertyAccessor, setBeanResolver, setConstructorResolvers, setMethodResolvers, setOperatorOverloader, setPropertyAccessors, setRootObject, setRootObject, setTypeComparator, setTypeConverter, setTypeLocator, setVariable, setVariables
private final ParameterNameDiscoverer paramDiscoverer
private final java.lang.reflect.Method method
private final java.lang.Object[] args
private final java.lang.Class<?> targetClass
private final java.util.Map<java.lang.String,java.lang.reflect.Method> methodCache
private boolean paramLoaded
LazyParamAwareEvaluationContext(java.lang.Object rootObject, ParameterNameDiscoverer paramDiscoverer, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Class<?> targetClass, java.util.Map<java.lang.String,java.lang.reflect.Method> methodCache)
public java.lang.Object lookupVariable(java.lang.String name)
lookupVariable
in interface EvaluationContext
lookupVariable
in class StandardEvaluationContext
name
- variable to lookupprivate void loadArgsAsVariables()
private java.lang.String toString(java.lang.reflect.Method m)