Reading annotation values in runtime

2010-12-16 Thread Márcio Menezes
Hi, I have to implement an authorization mechanism where I should be able to define which fields in a view the user has access to: Read / Edit. The idea that I had was to put annotations on top of those fields saying the permission the user must have in order to interact with that field. To get

Re: Reading annotation values in runtime

2010-12-16 Thread Myles Bostwick
There is no runtime reflection in GWT due to client code being compiled to javascript. What you could probably do is something with Generators and deferred binding. Create your view, then have a generator create a subclass that implements your security for all those annotated fields. Generators