org.thymeleaf.spring3.expression
Class VariablesMapPropertyAccessor

Object
  extended by org.springframework.expression.spel.support.ReflectivePropertyAccessor
      extended by 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

Field Summary
static VariablesMapPropertyAccessor INSTANCE
           
 
Fields inherited from class org.springframework.expression.spel.support.ReflectivePropertyAccessor
readerCache, typeDescriptorCache, writerCache
 
Constructor Summary
VariablesMapPropertyAccessor()
           
 
Method Summary
 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)
           
 
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
 

Field Detail

INSTANCE

public static final VariablesMapPropertyAccessor INSTANCE
Constructor Detail

VariablesMapPropertyAccessor

public VariablesMapPropertyAccessor()
Method Detail

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.