org.thymeleaf.spring3.expression
Class VariablesMapPropertyAccessor
Object
org.springframework.expression.spel.support.ReflectivePropertyAccessor
org.thymeleaf.spring3.expression.VariablesMapPropertyAccessor
- All Implemented Interfaces:
- org.springframework.expression.PropertyAccessor
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).
- Since:
- 1.1
- Author:
- Daniel Fernández
Fields inherited from class org.springframework.expression.spel.support.ReflectivePropertyAccessor |
readerCache, typeDescriptorCache, writerCache |
Methods inherited from class org.springframework.expression.spel.support.ReflectivePropertyAccessor |
createOptimalAccessor, findField, findGetterForProperty, findSetterForProperty |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final VariablesMapPropertyAccessor INSTANCE
VariablesMapPropertyAccessor
public VariablesMapPropertyAccessor()
getSpecificTargetClasses
public Class<?>[] getSpecificTargetClasses()
- Specified by:
getSpecificTargetClasses
in interface org.springframework.expression.PropertyAccessor
- Overrides:
getSpecificTargetClasses
in class org.springframework.expression.spel.support.ReflectivePropertyAccessor
canRead
public boolean canRead(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
- Specified by:
canRead
in interface org.springframework.expression.PropertyAccessor
- Overrides:
canRead
in class org.springframework.expression.spel.support.ReflectivePropertyAccessor
- Throws:
org.springframework.expression.AccessException
read
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
- Specified by:
read
in interface org.springframework.expression.PropertyAccessor
- Overrides:
read
in class org.springframework.expression.spel.support.ReflectivePropertyAccessor
- Throws:
org.springframework.expression.AccessException
canWrite
public boolean canWrite(org.springframework.expression.EvaluationContext context,
Object target,
String name)
throws org.springframework.expression.AccessException
- Specified by:
canWrite
in interface org.springframework.expression.PropertyAccessor
- Overrides:
canWrite
in class org.springframework.expression.spel.support.ReflectivePropertyAccessor
- Throws:
org.springframework.expression.AccessException
write
public void write(org.springframework.expression.EvaluationContext context,
Object target,
String name,
Object newValue)
throws org.springframework.expression.AccessException
- Specified by:
write
in interface org.springframework.expression.PropertyAccessor
- Overrides:
write
in class org.springframework.expression.spel.support.ReflectivePropertyAccessor
- Throws:
org.springframework.expression.AccessException
Copyright © 2013 The THYMELEAF team. All Rights Reserved.