1 package net.sf.crispy;
2
3 import java.util.Map;
4
5 /**
6 * This interface describe the converter (mapping) to the invocation string (a url for example) from the invocation class.
7 *
8 * <br><br>
9 * For example:
10 * <br>
11 * the url (namespace) = <i>http://localhost:8080/axis/services</i>
12 * <br>
13 * invoke of the class: <i>test.crispy.example.service.Calculator</i>
14 * <br>
15 * <b>convert result:</b> <i>http://localhost:8080/axis/services/Calculator</i>
16 * <br>
17 * OR
18 * <br>
19 * class (namespace): <i>test.crispy.example.service.Calculator</i>
20 * <br>
21 * invocation string = method name: <i>add</i>
22 * <br>
23 * <b>convert result:</b> <i>test.crispy.example.service.Calculator.add</i>
24 *
25 * @author Linke
26 *
27 */
28 public interface InvocationStrategy {
29
30 public static final String CLASS_NAME = "class.name";
31 public static final String METHOD_NAME = "method.name";
32 public static final String CONST_NAMESPACE = "name.space.const";
33 public static final String URL = "url";
34
35 /**
36 * Create a invocation object of different input parameter.
37 * @param pvPropertyMap Properties to create the invocation string.
38 * @return The invocation string.
39 */
40 public Object convert (Map pvPropertyMap);
41
42 }