Comment 6 for bug 730086

Revision history for this message
Prageeth Silva (prageethsilva) wrote :

I was looking at creating custom annotations, that might come in handy to create this generic form.
The link below gives examples of how this can be used:

http://download.oracle.com/javase/1.5.0/docs/guide/language/annotations.html

I would think that we should have an annotation called the @UserLevel that takes in the Role enum (annotations are allowed to only have primitives, String, Class, enum and array of those types).

So depending on which Role it is, going from User -> Developer -> Admin, the info classes can be generated on the run, without us manually having to do this for every field.

If this seems to be a better approach, please let me know so that I can start implementing this.