Forum: JRuby Java annotations

Posted by Werner Punz (Guest)
on 2012-10-22 11:56
(Received via mailing list)
Hello I am new to jruby, but I ran already into a problem, I am
searching for a way to use java annotations in a way that jrubyc
generates the annotations for the generated java class ala

java_annoation '@WhatEverTheAnnotationIs'
class MyClass
end

which then should result in a java class
@WhatEverTheAnnotationIs
class MyClass {
... ruby bindings here
}


Is ther a way to do it I cannot find any references on the net.

Kind regards

Werner Punz
Posted by Douglas Campos (Guest)
on 2012-10-22 16:10
(Received via mailing list)
this article might help you, xshay uses it

http://rhnh.net/2012/10/20/guice-in-your-jruby

On Oct 22, 2012, at 7:53 AM, Werner Punz wrote:

> }
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>   http://xircles.codehaus.org/manage_email
>
>

-- qmx
Posted by Keith B. (keith_b)
on 2012-10-22 17:33
(Received via mailing list)
Also, "Using JRuby" is an excellent book, and has some coverage of
annotations:

http://pragprog.com/book/jruby/using-jruby

I like having the ebook handy on my system so I can consult it when I
have questions.

- Keith

Keith R. Bennett
http://about.me/keithrbennett
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.