1 package net.sf.crispy.concurrent;
2
3 import java.lang.reflect.Method;
4
5 /**
6 * Handle callbacks for call a method in <code>ExecuteWorker</code> (in sperated Thread).
7 * @author Linke
8 * @since Version 1.0
9 */
10
11 public interface ExecuteCallback {
12
13 /**
14 * Execute the method.
15 *
16 * @param pvObject
17 * @param pvMethod Method to invocation.
18 * @param pvArgs Parameter for the method.
19 * @return The result of execution.
20 * @throws Throwable
21 */
22 public Object execute(Object pvObject, Method pvMethod, Object[] pvArgs) throws Exception;
23 }