- _rubyRuntime = Ruby.newInstance();
- _rubyRuntime.evalScriptlet(String.format("require '%s'",filename));
- Object rfj = _rubyRuntime.evalScriptlet(String.format("%s.new",serviceClassName, serviceName));
- rfj = org.jruby.javasupport.JavaEmbedUtils.rubyToJava(_rubyRuntime,
- (org.jruby.runtime.builtin.IRubyObject) rfj,
- SampleService.class);
- _service = (SampleService)rfj;