You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (Created) (JIRA)" <ji...@apache.org> on 2011/10/19 18:37:10 UTC

[jira] [Created] (JEXL-119) Allow indexed properties container resolution in expressions

Allow indexed properties container resolution in expressions
------------------------------------------------------------

                 Key: JEXL-119
                 URL: https://issues.apache.org/jira/browse/JEXL-119
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 2.0.1, 2.1
            Reporter: Henri Biestro
            Assignee: Henri Biestro
             Fix For: 2.1


When a class exposes a "pseudo" indexed property container, JEXL should be able to introspect and expose it.
For instance, given a class exposing the methods 'void setProperty(String name, Object value)' and 'Object getProperty(String name)' and an instance 'o' exposed through the context, JEXL should allow the expressions 'o.property.first' to execute 'o.getProperty("first")' and the expression 'o.property.first = "ONE"' to execute 'o.setProperty("first", "ONE").

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JEXL-119) Allow indexed properties container resolution in expressions

Posted by "Henri Biestro (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Biestro resolved JEXL-119.
--------------------------------

    Resolution: Fixed


* Exposed methods from internal/introspection to ease solving method * parameters matching;
* Modified UberspectImpl to search for "pseudo" indexed property patterns;
* Fixed Interpreter to better report property vs variable error;
* Added specific test;
* Updated changes.xml

Committed revision 1186317.

src/main/java/org/apache/commons/jexl2/Interpreter.java
src/main/java/org/apache/commons/jexl2/internal/Introspector.java
src/main/java/org/apache/commons/jexl2/internal/introspection/ClassMap.java
src/main/java/org/apache/commons/jexl2/internal/introspection/IntrospectorBase.java
src/main/java/org/apache/commons/jexl2/internal/introspection/MethodKey.java
src/main/java/org/apache/commons/jexl2/introspection/UberspectImpl.java
src/site/xdoc/changes.xml
src/test/java/org/apache/commons/jexl2/IssuesTest.java

                
> Allow indexed properties container resolution in expressions
> ------------------------------------------------------------
>
>                 Key: JEXL-119
>                 URL: https://issues.apache.org/jira/browse/JEXL-119
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 2.0.1, 2.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>             Fix For: 2.1
>
>
> When a class exposes a "pseudo" indexed property container, JEXL should be able to introspect and expose it.
> For instance, given a class exposing the methods 'void setProperty(String name, Object value)' and 'Object getProperty(String name)' and an instance 'o' exposed through the context, JEXL should allow the expressions 'o.property.first' to execute 'o.getProperty("first")' and the expression 'o.property.first = "ONE"' to execute 'o.setProperty("first", "ONE").

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JEXL-119) Allow indexed properties container resolution in expressions

Posted by "Sebb (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated JEXL-119:
----------------------

    Affects Version/s:     (was: 2.1)
    
> Allow indexed properties container resolution in expressions
> ------------------------------------------------------------
>
>                 Key: JEXL-119
>                 URL: https://issues.apache.org/jira/browse/JEXL-119
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 2.0.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>             Fix For: 2.1
>
>
> When a class exposes a "pseudo" indexed property container, JEXL should be able to introspect and expose it.
> For instance, given a class exposing the methods 'void setProperty(String name, Object value)' and 'Object getProperty(String name)' and an instance 'o' exposed through the context, JEXL should allow the expressions 'o.property.first' to execute 'o.getProperty("first")' and the expression 'o.property.first = "ONE"' to execute 'o.setProperty("first", "ONE").

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (JEXL-119) Allow indexed properties container resolution in expressions

Posted by "Sebb (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JEXL-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb closed JEXL-119.
---------------------

    
> Allow indexed properties container resolution in expressions
> ------------------------------------------------------------
>
>                 Key: JEXL-119
>                 URL: https://issues.apache.org/jira/browse/JEXL-119
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 2.0.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>             Fix For: 2.1
>
>
> When a class exposes a "pseudo" indexed property container, JEXL should be able to introspect and expose it.
> For instance, given a class exposing the methods 'void setProperty(String name, Object value)' and 'Object getProperty(String name)' and an instance 'o' exposed through the context, JEXL should allow the expressions 'o.property.first' to execute 'o.getProperty("first")' and the expression 'o.property.first = "ONE"' to execute 'o.setProperty("first", "ONE").

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira