Class DefaultELResolver

java.lang.Object
jakarta.el.ELResolver
jakarta.el.CompositeELResolver
org.springframework.binding.expression.el.DefaultELResolver

public class DefaultELResolver extends jakarta.el.CompositeELResolver
A generic ELResolver to be used as a default when no other ELResolvers have been configured by the client application. This implementation will resolve the first part of the expression to the pre-configured base object, and will then delegate through the chain of standard resolvers for the rest of the expression. Note - Requires Java 5 or higher due to the use of generics in the API's basic resolvers.
Author:
Jeremy Grelle
  • Field Summary

    Fields inherited from class jakarta.el.ELResolver

    RESOLVABLE_AT_DESIGN_TIME, TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultELResolver(Object target, List<? extends jakarta.el.ELResolver> customResolvers)
    Creates a new default EL resolver for resolving properties of the root object.
    DefaultELResolver(List<? extends jakarta.el.ELResolver> customResolvers)
    Creates a new default EL resolver for resolving properties of the root object.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    getType(jakarta.el.ELContext context, Object base, Object property)
     
    getValue(jakarta.el.ELContext context, Object base, Object property)
     
    void
    setValue(jakarta.el.ELContext context, Object base, Object property, Object val)
     

    Methods inherited from class jakarta.el.CompositeELResolver

    add, convertToType, getCommonPropertyType, getFeatureDescriptors, invoke, isReadOnly

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultELResolver

      public DefaultELResolver(List<? extends jakarta.el.ELResolver> customResolvers)
      Creates a new default EL resolver for resolving properties of the root object. Assumes a null target and expect that the base object has already been resolved by the time this resolver runs.
      Parameters:
      customResolvers - the custom resolvers to apply before this resolver
    • DefaultELResolver

      public DefaultELResolver(Object target, List<? extends jakarta.el.ELResolver> customResolvers)
      Creates a new default EL resolver for resolving properties of the root object.
      Parameters:
      target - the target, or "root", object of the expression
      customResolvers - the custom resolvers to apply before this resolver
  • Method Details

    • getTarget

      public Object getTarget()
    • getType

      public Class<?> getType(jakarta.el.ELContext context, Object base, Object property)
      Overrides:
      getType in class jakarta.el.CompositeELResolver
    • getValue

      public Object getValue(jakarta.el.ELContext context, Object base, Object property)
      Overrides:
      getValue in class jakarta.el.CompositeELResolver
    • setValue

      public void setValue(jakarta.el.ELContext context, Object base, Object property, Object val)
      Overrides:
      setValue in class jakarta.el.CompositeELResolver