On Wed, 08 Feb 2006, Berner, Derek, OSE defenestrated me: > > I know JRuby is good at importing Java classes into Ruby - but what > about vice versa? I know there are standard classes (RubyString, > RubyArray, IRubyObject etc)... But I need to be able to access Ruby > objects directly through Java (not by delegating to the runtime) for the > J2RubEE project. Is there a good way of doing this? I was thinking of > autogenerating CGLIB proxies. Is there a simpler way?
Can you explain why you want this ability? I may have an alternative (or may not). Mostly, I just want to understand what sorts of things people want to do. We really have no mechanism for this. It seems brittle at this point to say you can start doing stuff to an IRubyObject from Java from an outside JRuby internals perspective. > Also, does JRuby use Java Reflection or CGLIB? It currently uses Java reflection. I have a patch using CGLIB though (unfinished). That is currently in the realm of experiment. -Tom -- + http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur | ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Jruby-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jruby-devel
