|
1 |
| package net.sf.crispy.strategy; |
|
2 |
| |
|
3 |
| import java.util.Map; |
|
4 |
| |
|
5 |
| import net.sf.crispy.InvocationStrategy; |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| public class NameSpacePlusMethodInvocationStrategy implements InvocationStrategy { |
|
20 |
| |
|
21 |
85
| public Object convert(Map pvPropertyMap) {
|
|
22 |
85
| String lvNameSpace = (String) pvPropertyMap.get(InvocationStrategy.CLASS_NAME);
|
|
23 |
85
| String lvConstNameSpace = (String) pvPropertyMap.get(InvocationStrategy.CONST_NAMESPACE);
|
|
24 |
2
| if (lvConstNameSpace != null) { lvNameSpace = lvConstNameSpace; }
|
|
25 |
| |
|
26 |
85
| String lvInvocationString = (String) pvPropertyMap.get(InvocationStrategy.METHOD_NAME);
|
|
27 |
85
| return lvNameSpace + '.' + lvInvocationString;
|
|
28 |
| } |
|
29 |
| |
|
30 |
| } |