Class FlowVariablePropertyAccessor

java.lang.Object
org.springframework.webflow.expression.spel.FlowVariablePropertyAccessor
All Implemented Interfaces:
org.springframework.expression.PropertyAccessor

public class FlowVariablePropertyAccessor extends Object implements org.springframework.expression.PropertyAccessor

Spring EL PropertyAccessor that enables use of the following reserved variables in expressions:

 currentUser
 flowRequestContext
 resourceBundle
 

Note that any property of RequestContext (e.g. flowScope, requestParameters, etc.) may also be used in expressions. Such properties are already handled by the ReflectivePropertyAccessor.

Since:
2.1
Author:
Rossen Stoyanchev
  • Constructor Details

    • FlowVariablePropertyAccessor

      public FlowVariablePropertyAccessor()
  • Method Details

    • getSpecificTargetClasses

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

      public boolean canRead(org.springframework.expression.EvaluationContext context, 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, Object target, String name)
      Specified by:
      read in interface org.springframework.expression.PropertyAccessor
    • canWrite

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

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