|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| package net.sf.crispy; |
|
6 |
| |
|
7 |
| import java.lang.reflect.Method; |
|
8 |
| import java.util.Properties; |
|
9 |
| |
|
10 |
| import org.apache.commons.logging.Log; |
|
11 |
| import org.apache.commons.logging.LogFactory; |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| public abstract class Executor { |
|
20 |
| |
|
21 |
| protected static final Log log = LogFactory.getLog (Executor.class); |
|
22 |
| |
|
23 |
| |
|
24 |
| private Properties properties = new Properties(); |
|
25 |
| private String urlAndPort = null; |
|
26 |
| private Object invocationStrategy = null; |
|
27 |
| |
|
28 |
| |
|
29 |
486
| public Executor () { }
|
|
30 |
| |
|
31 |
482
| public void setProperties(Properties pvProperties) { properties = pvProperties; }
|
|
32 |
1854
| public Properties getProperties() { return properties; }
|
|
33 |
| |
|
34 |
217
| public void setUrlAndPort(String pvUrlAndPort) { urlAndPort = pvUrlAndPort; }
|
|
35 |
474
| public String getUrlAndPort() { return urlAndPort; }
|
|
36 |
| |
|
37 |
722
| public void setInvocationStrategy (Object pvInvocationStrategy) { invocationStrategy = pvInvocationStrategy; }
|
|
38 |
283
| public Object getInvocationStrategy () { return invocationStrategy; }
|
|
39 |
| |
|
40 |
| |
|
41 |
| |
|
42 |
| |
|
43 |
| |
|
44 |
59
| public InvocationStrategy getDefaultInvocationStrategy() { return null;}
|
|
45 |
| |
|
46 |
| |
|
47 |
| |
|
48 |
| |
|
49 |
| |
|
50 |
| |
|
51 |
| |
|
52 |
222
| public boolean withConverter() { return false; }
|
|
53 |
| |
|
54 |
| |
|
55 |
| |
|
56 |
| |
|
57 |
| |
|
58 |
| |
|
59 |
| public abstract String getDefaultUrlAndPort(); |
|
60 |
| |
|
61 |
| |
|
62 |
| |
|
63 |
| |
|
64 |
| |
|
65 |
| |
|
66 |
| |
|
67 |
| |
|
68 |
| |
|
69 |
| |
|
70 |
| |
|
71 |
| public abstract Object execute(Class pvProxyClass, Object pvProxy, Method pvMethod, Object pvArgs[]) throws Exception; |
|
72 |
| |
|
73 |
| } |