コード例 #1
0
 public Applicator bind(Object target, String methodname) {
   Class<?> cls = target.getClass();
   if (!methods.has(cls, methodname, String.class)) barf(cls, methodname);
   Method method = methods.get(cls, methodname, String.class);
   method.setAccessible(true);
   return impl.impl(ReflectiveApplicator.class, target, method);
 }
コード例 #2
0
 public Runnable imbune(
     Runnable runnable, ErrorHandler errors, TimeoutHandler timeouts, int timeout) {
   Runnable safe = impl.impl(SafeRunnable.class, runnable, errors);
   return impl.impl(TimeBoxedRunnable.class, safe, timeouts, timeout);
 }