Class ScopeSearchingELResolver

java.lang.Object
jakarta.el.ELResolver
org.springframework.webflow.expression.el.ScopeSearchingELResolver

public class ScopeSearchingELResolver extends jakarta.el.ELResolver
Custom EL resolver that searches the current request context for variables to resolve. The search algorithm looks in request scope first, then flash scope, then view scope, then flow scope, then conversation scope. Suitable for use along side other variable resolvers to support EL binding expressions like "#{bean.property}" where "bean" could be a property in any supported scope.
Author:
Jeremy Grelle
  • Constructor Details

    • ScopeSearchingELResolver

      public ScopeSearchingELResolver()
    • ScopeSearchingELResolver

      public ScopeSearchingELResolver(RequestContext requestContext)
  • Method Details

    • getCommonPropertyType

      public Class<?> getCommonPropertyType(jakarta.el.ELContext elContext, Object base)
      Specified by:
      getCommonPropertyType in class jakarta.el.ELResolver
    • getFeatureDescriptors

      public Iterator<FeatureDescriptor> getFeatureDescriptors(jakarta.el.ELContext elContext, Object base)
      Overrides:
      getFeatureDescriptors in class jakarta.el.ELResolver
    • getType

      public Class<?> getType(jakarta.el.ELContext elContext, Object base, Object property)
      Specified by:
      getType in class jakarta.el.ELResolver
    • getValue

      public Object getValue(jakarta.el.ELContext elContext, Object base, Object property)
      Specified by:
      getValue in class jakarta.el.ELResolver
    • isReadOnly

      public boolean isReadOnly(jakarta.el.ELContext elContext, Object base, Object property)
      Specified by:
      isReadOnly in class jakarta.el.ELResolver
    • setValue

      public void setValue(jakarta.el.ELContext elContext, Object base, Object property, Object value)
      Specified by:
      setValue in class jakarta.el.ELResolver
    • getRequestContext

      protected RequestContext getRequestContext()