コード例 #1
0
 public void cancel() {
   final Method invoke =
       ReflectionUtils.getMethod(
           providerInOtherClassLoader.getClass(), "cancel", new Class[] {});
   ReflectionUtils.invokeMethodWithArray(providerInOtherClassLoader, invoke, null);
 }
コード例 #2
0
 void setTestClassLoader(Object o, ClassLoader testClassLoader) {
   Method setter = getMethod(o, "setClassLoaders", ClassLoader.class);
   invokeMethodWithArray(o, setter, testClassLoader);
 }