Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-28

Enhance the resolution of properties and methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Won't Fix
    • 1.1
    • 2.0.1
    • None

    Description

      JexlContext need provide additional methods, such as
      1) Object getProperty(Object object, String propName);
      2) void setProperty(Object object, String propName, Object propValue);
      3) Object invokeMethod(Object object, String methodName, Object[] params);
      where object can be null for the non-object properties/methods.

      ASTIdentifier, ASTArrayAccess, ASTAssignment, and ASTMethod can use them for unresolvable properties/methods.

      This is similar to what are changed by myFacese over commons EL to support friendly VariableResolver and PropertyResolver for applications.

      I use "ObjectinvokeMethod()" instead of "Method getMethod(object, methodNae)", because a method may not be implemented as a java method. Such as in commons validator, validators are registered in the configuration file of validation forms.

      Attachments

        Activity

          People

            Unassigned Unassigned
            wliaw Weikuo Liaw
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: