Reputation: 96987
Please tell me if it is possible to do the following:
May you provide a small working example?
EDIT: It turns out that embedding was the simplest way to achieve this. More information is available on Embedding JRuby.
Upvotes: 7
Views: 878
Reputation: 9026
It depends on what you mean by "do something". If you mean "redefine a method", then the answer is no, not really. The new method will be used by jruby, but any calls to the method in java will continue to invoke the old method.
Upvotes: 0
Reputation: 3299
Yes it's possible. This page on the JRuby wiki should get you started.
Upvotes: 4