public class EnvironmentAccessor
extends java.lang.Object
implements org.springframework.expression.PropertyAccessor
Environment
instance.Constructor and Description |
---|
EnvironmentAccessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Can read any
Environment , thus always returns true. |
boolean |
canWrite(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Read-only: returns
false . |
java.lang.Class<?>[] |
getSpecificTargetClasses() |
org.springframework.expression.TypedValue |
read(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name)
Access the given target object by resolving the given property name against the given target
environment.
|
void |
write(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue)
Read-only: no-op.
|
public java.lang.Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses
in interface org.springframework.expression.PropertyAccessor
public boolean canRead(org.springframework.expression.EvaluationContext context, @Nullable java.lang.Object target, java.lang.String name) throws org.springframework.expression.AccessException
Environment
, thus always returns true.canRead
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, @Nullable java.lang.Object target, java.lang.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, @Nullable java.lang.Object target, java.lang.String name) throws org.springframework.expression.AccessException
false
.canWrite
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public void write(org.springframework.expression.EvaluationContext context, @Nullable java.lang.Object target, java.lang.String name, @Nullable java.lang.Object newValue) throws org.springframework.expression.AccessException
write
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException