I had couple of queries around invokeMethod of JRubyScriptEngine. Can
someone please help me with these?
invokeMethod of Invocable interface does not take the Class of the
return type as parameter, hence rubyToJava call passes generic
Is this a problem with designing the interface?
when i use invokeMethod, it takes native java objects and converts
to ruby objects using the wrap method. On the other hand, the object
returned by invokeMethod is not a native java object, but a RubyObject
instance variables set to the fields of the corresponding native java
object. How do I unwrap the Ruby object to get the native java object?
e.g. if the return type is LoanResponse with two fields ssn:string and
approved:boolean, the return object i get is a Ruby Object with @ssn and
@approved instance variables in the container map.
(i tried adding another invokeMethod, which takes the Class of the
return type as parameter, and rubyToJava gets to use this, but that did
I am using Apache BSF 3.0 beta and JRuby 1.0.3 on JDK 1.5.