[
https://issues.apache.org/jira/browse/JEXL-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352977#comment-14352977
]
Dmitri Blinov commented on JEXL-119:
------------------------------------
Is it possible to implement this feature for "Read-only" properties, those with
"Object getProperty(String name)" method and without appropriate void
setProperty(String name, Object value) method?
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)