Re: [jruby-dev] Annotation support through normal Ruby code

2007-05-28 Thread Charles Oliver Nutter
Werner Schuster (murphee) wrote: Charles Oliver Nutter wrote: JRuby doesn't support annotations because Ruby doesn't support annotations. So what! We can extend Ruby to add something like annotations: class JPABean def self.inherited(clazz) @@annotations = {} end def self.anno(annotat

Re: [jruby-dev] Annotation support through normal Ruby code

2007-05-28 Thread Werner Schuster (murphee)
Charles Oliver Nutter wrote: > JRuby doesn't support annotations because Ruby doesn't support > annotations. So what! We can extend Ruby to add something like > annotations: > > class JPABean > def self.inherited(clazz) > @@annotations = {} > end > def self.anno(annotation) > @@last_a

Re: [jruby-dev] Annotation support through normal Ruby code

2007-05-27 Thread Charles Oliver Nutter
Charles Oliver Nutter wrote: So as you can see we really do have all the necessary requirements to annotate classes. Now what if we just had MyBean be a java.lang.Object extension and stuffed the annotations into the resulting generated class? Bingo, we've got annotation support in JRuby on Jav