public final class VariablesMapPropertyAccessor
extends org.springframework.expression.spel.support.ReflectivePropertyAccessor
Property accessor used for allowing Spring EL expression evaluators
treat VariablesMap objects correctly (map keys will be accessible
as object properties).
| Modifier and Type | Field and Description |
|---|---|
static VariablesMapPropertyAccessor |
INSTANCE |
| Constructor and Description |
|---|
VariablesMapPropertyAccessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(org.springframework.expression.EvaluationContext context,
Object target,
String name) |
boolean |
canWrite(org.springframework.expression.EvaluationContext context,
Object target,
String name) |
Class<?>[] |
getSpecificTargetClasses() |
org.springframework.expression.TypedValue |
read(org.springframework.expression.EvaluationContext context,
Object target,
String name) |
void |
write(org.springframework.expression.EvaluationContext context,
Object target,
String name,
Object newValue) |
public static final VariablesMapPropertyAccessor INSTANCE
public Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessorgetSpecificTargetClasses in class org.springframework.expression.spel.support.ReflectivePropertyAccessorpublic boolean canRead(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
canRead in interface org.springframework.expression.PropertyAccessorcanRead in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionpublic org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
read in interface org.springframework.expression.PropertyAccessorread in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionpublic boolean canWrite(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
canWrite in interface org.springframework.expression.PropertyAccessorcanWrite in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionpublic void write(org.springframework.expression.EvaluationContext context,
Object target,
String name,
Object newValue)
throws org.springframework.expression.AccessException
write in interface org.springframework.expression.PropertyAccessorwrite in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionCopyright © 2016 The THYMELEAF team. All rights reserved.