[ 
https://issues.apache.org/jira/browse/IMPERIUS-8?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

JGSASL Naidu updated IMPERIUS-8:
--------------------------------

    Attachment: JavaActuator_Patch.txt
                IdentPrimaryTuple_Patch.txt
                AnchorMethodInvokeAction_Patch.txt

I have created patches for the issues 1 & 3 and working on issue 2
Issues:
1. Setting private variables: similar to how getting them is currently done. 
2. Nested get and set: getting and setting attributes of private variables and 
such. 
3. Getting booleans: for booleans, the getters are usually isVariable, rather 
than getVariable. 


> Access to private variables of anchor classes in SPL file
> ---------------------------------------------------------
>
>                 Key: IMPERIUS-8
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-8
>             Project: Imperius
>          Issue Type: New Feature
>            Reporter: Reza Asadollahi
>            Assignee: Bill Stoddard
>            Priority: Minor
>         Attachments: AnchorMethodInvokeAction_Patch.txt, 
> IdentPrimaryTuple_Patch.txt, JavaActuator_Patch.txt, patch.txt, 
> RunSamples_Patch.txt, SimplePolicy.spl, TestElement.java, 
> TestElement_Patch.txt
>
>
> Currently, a policy can not access the anchor class private attributes via 
> their getter and setter methods, and the attributes should be defined 
> "public" instead. It is possible to call a getter method in the "condition" 
> section but it is more interesting to read and write attributes in an 
> expression-like language. For example bean.attr1 should be translated 
> internally to bean.getAttr1().  
> What we could do is first check if bean.attr1 is accessible (ie is public) if 
> not we can try doing bean.getAttr1()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to