View Javadoc

1   package com.atlassian.selenium;
2   
3   import java.lang.reflect.Method;
4   import java.util.concurrent.Callable;
5   
6   public class MethodHandlerCallable implements Callable<Object>
7   {
8       protected final SeleniumClient client;
9       protected final Method method;
10      protected Object ret = null;
11      protected final Object[] args;
12      protected Exception ex = null;
13  
14      public MethodHandlerCallable(Method method, SeleniumClient client, Object[] args)
15      {
16          this.client = client;
17          this.method = method;
18          this.args = args;
19      }
20  
21      public Object call() throws Exception
22      {
23          return method.invoke(client, args);
24      }
25  
26  
27  }