[
https://issues.apache.org/jira/browse/TAPESTRY-2116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565372#action_12565372
]
Howard M. Lewis Ship commented on TAPESTRY-2116:
------------------------------------------------
I've been thinking about adding an @Accessible annotation that would generate
the getters and setters for you.
You'd want this to run early and *not* claim the fields it make accessible.
We'd also need some API changes such that the methods that get generated are
still subject to later modification (i.e., so that the field accesses are
changed by the later annotation).
I can look at your patch.
The reason I haven't done this is that, for unit testing, you need access to
the fields in un-transformed code.
> @Retain and @Persist should generate a setter and/or getter for the decorated
> field
> -----------------------------------------------------------------------------------
>
> Key: TAPESTRY-2116
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2116
> Project: Tapestry
> Issue Type: New Feature
> Components: tapestry-core
> Reporter: Sven Homburg
> Fix For: 5.0.10
>
> Attachments: TAPESTRY-2116.patch
>
>
> sometime code looks incredible unclear, because its peppered with getter and
> setter methods.
> i think it should be ease to extend the Persist- and RetainWorker for doing
> that job.
> @Retain(getter=true, setter=true)
> as an exmaple
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]