public final class SPELContextPropertyAccessor extends Object implements org.springframework.expression.PropertyAccessor
Property accessor used for allowing Spring EL expression evaluators
treat IContext
objects correctly (map keys will be accessible
as object properties).
Note that, even if IContext
objects used as expression roots will be accessible as
java.util.Maps thanks to SPELContextMapWrapper
, this property accessor
class is still needed in order to access nested context info like the session or
param maps in web contexts.
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 evaluationContext,
Object target,
String name) |
void |
write(org.springframework.expression.EvaluationContext context,
Object target,
String name,
Object newValue) |
public Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses
in interface org.springframework.expression.PropertyAccessor
public boolean canRead(org.springframework.expression.EvaluationContext context, Object target, String name) throws org.springframework.expression.AccessException
canRead
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext evaluationContext, Object target, String name) throws org.springframework.expression.AccessException
read
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public boolean canWrite(org.springframework.expression.EvaluationContext context, Object target, String name) throws org.springframework.expression.AccessException
canWrite
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public void write(org.springframework.expression.EvaluationContext context, Object target, String name, Object newValue) throws org.springframework.expression.AccessException
write
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
Copyright © 2017 The THYMELEAF team. All rights reserved.