public class EnvironmentAccessor extends 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,
       Object target,
       String name)Can read any  Environment, thus always returns true. | 
| boolean | canWrite(org.springframework.expression.EvaluationContext context,
        Object target,
        String name)Read-only: returns  false. | 
| Class<?>[] | getSpecificTargetClasses() | 
| org.springframework.expression.TypedValue | read(org.springframework.expression.EvaluationContext context,
    Object target,
    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,
     Object target,
     String name,
     Object newValue)Read-only: no-op. | 
public Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessorpublic boolean canRead(org.springframework.expression.EvaluationContext context,
                       @Nullable
                       Object target,
                       String name)
                throws org.springframework.expression.AccessException
Environment, thus always returns true.canRead in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessExceptionpublic org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context,
                                                      @Nullable
                                                      Object target,
                                                      String name)
                                               throws org.springframework.expression.AccessException
read in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessExceptionpublic boolean canWrite(org.springframework.expression.EvaluationContext context,
                        @Nullable
                        Object target,
                        String name)
                 throws org.springframework.expression.AccessException
false.canWrite in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessExceptionpublic void write(org.springframework.expression.EvaluationContext context,
                  @Nullable
                  Object target,
                  String name,
                  @Nullable
                  Object newValue)
           throws org.springframework.expression.AccessException
write in interface org.springframework.expression.PropertyAccessororg.springframework.expression.AccessException