259260261262263264265266
return new ReflectionCallbackFactory(type); } else if (dumping) { return new DumpingInvocationCallbackFactory(runtime, type, classLoader); } else { // FIXME: No, I don't like it. return new InvocationCallbackFactory(runtime, type, classLoader); } }
262263264265266267268269
252253254255256257258259
// used by compiler public static CallbackFactory createFactory(Ruby runtime, Class type, ClassLoader classLoader) { if (reflection) { return new ReflectionCallbackFactory(type); } else { return new InvocationCallbackFactory(runtime, type, classLoader); } }