Class SmartEnvironmentAccessor

java.lang.Object
org.springframework.geode.expression.SmartEnvironmentAccessor
All Implemented Interfaces:
org.springframework.expression.PropertyAccessor

public class SmartEnvironmentAccessor extends Object implements org.springframework.expression.PropertyAccessor
Spring PropertyAccessor implementation that knows how to access properties from Environment and EnvironmentCapable objects.
Since:
1.3.1
See Also:
  • Environment
  • EnvironmentCapable
  • PropertyAccessor
  • Constructor Details

    • SmartEnvironmentAccessor

      public SmartEnvironmentAccessor()
  • Method Details

    • create

      @NonNull public static SmartEnvironmentAccessor create()
      Factory method used to construct a new instance of SmartEnvironmentAccessor.
      Returns:
      a new instance of SmartEnvironmentAccessor.
    • getSpecificTargetClasses

      @Nullable public Class<?>[] getSpecificTargetClasses()
      Specified by:
      getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessor
    • canRead

      public boolean canRead(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name)
      Specified by:
      canRead in interface org.springframework.expression.PropertyAccessor
    • read

      public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name)
      Specified by:
      read in interface org.springframework.expression.PropertyAccessor
    • canWrite

      public boolean canWrite(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name)
      Specified by:
      canWrite in interface org.springframework.expression.PropertyAccessor
    • write

      public void write(org.springframework.expression.EvaluationContext context, @Nullable Object target, String name, @Nullable Object newValue)
      Specified by:
      write in interface org.springframework.expression.PropertyAccessor