There is a Java interface Job:
interface Job{
...
}
and a JRuby class SimpleJob that implements it:
class SimpleJob
require org.quartz.Job
...
end
I need to (from a Java class) instantiate the SimpleJob class using the javax.script.ScriptEngine class, and get its class object. How do I do this?
"easiest" way is doing an eval :
to access the class and "call" it by hand :
NOTE: it's also possible to achieve the same using JRuby's "direct" API :
assuming you obtained a
org.jruby.Rubyruntime instance