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
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
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