130131132133134135136137
} private void register(XStream2 xs, ScriptingContainer ruby) { JRubyXStream.register(xs,ruby); synchronized (xs) { xs.setMapper(new JRubyMapper(xs.getMapperInjectionPoint())); } }
4142434445464748
} private void register(XStream2 xs, ScriptingContainer ruby) { JRubyXStream.register(xs, ruby); synchronized (xs) { xs.setMapper(new JRubyMapper(xs.getMapperInjectionPoint())); } }
5657585960616263
* sets up an XSTREAM to be able to handle jruby objects * @param xs */ private static void enableJRubyXStream(XStream2 xs) { synchronized (xs) { xs.setMapper(new JRubyMapper(xs.getMapperInjectionPoint())); } }