public class SmartEnvironmentAccessor
extends java.lang.Object
implements org.springframework.expression.PropertyAccessor
PropertyAccessor implementation that knows how to access properties
from Environment and EnvironmentCapable objects.Environment,
EnvironmentCapable,
PropertyAccessor| Constructor and Description |
|---|
SmartEnvironmentAccessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
canWrite(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
static SmartEnvironmentAccessor |
create()
Factory method used to construct a new instance of
SmartEnvironmentAccessor. |
java.lang.Class<?>[] |
getSpecificTargetClasses() |
org.springframework.expression.TypedValue |
read(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
void |
write(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue) |
@NonNull public static SmartEnvironmentAccessor create()
SmartEnvironmentAccessor.SmartEnvironmentAccessor.@Nullable public java.lang.Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessorpublic boolean canRead(org.springframework.expression.EvaluationContext context,
@Nullable
java.lang.Object target,
java.lang.String name)
canRead in interface org.springframework.expression.PropertyAccessorpublic org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context,
@Nullable
java.lang.Object target,
java.lang.String name)
read in interface org.springframework.expression.PropertyAccessorpublic boolean canWrite(org.springframework.expression.EvaluationContext context,
@Nullable
java.lang.Object target,
java.lang.String name)
canWrite in interface org.springframework.expression.PropertyAccessorpublic void write(org.springframework.expression.EvaluationContext context,
@Nullable
java.lang.Object target,
java.lang.String name,
@Nullable
java.lang.Object newValue)
write in interface org.springframework.expression.PropertyAccessor