Coding patterns for Active Annotations

33 views
Skip to first unread message

Christian Vogel

unread,
Mar 15, 2016, 9:00:53 AM3/15/16
to Xtend Programming Language
I noticed in my own working with AA's that it is hard to make them work together. 
It is even harder when you are using the AA's of another person's library.

So I was wondering if we could establish coding patterns for AA's that make them 'stack'.
For example, having a method that is @Observable, and then also adding @Cached, and then the generated Java code just not working.


Since it is impolite to ask questions without some inkling of a solution, here is maybe a start:

To solve this, there has to be some kind of isolation, each annotation should see the same basic method to work on. 

Perhaps it could be isolated by using a delegate class per AA? Or perhaps the compiler writes a piece of code inside the existing method, that calls the AA wrapped code in turn?

Reply all
Reply to author
Forward
0 new messages