1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.hivemind; |
16 |
| |
17 |
| import org.apache.hivemind.impl.MessageFormatter; |
18 |
| import org.apache.hivemind.service.ClassFabUtils; |
19 |
| |
20 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| public class HiveMindMessages |
26 |
| { |
27 |
| protected static MessageFormatter _formatter = new MessageFormatter(HiveMindMessages.class); |
28 |
| |
29 |
0
| public static String unimplementedMethod(Object instance, String methodName)
|
30 |
| { |
31 |
0
| return _formatter.format("unimplemented-method", instance.getClass().getName(), methodName);
|
32 |
| } |
33 |
| |
34 |
10
| public static String registryShutdown()
|
35 |
| { |
36 |
10
| return _formatter.getMessage("registry-shutdown");
|
37 |
| } |
38 |
| |
39 |
4
| public static String unknownLocation()
|
40 |
| { |
41 |
4
| return _formatter.getMessage("unknown-location");
|
42 |
| } |
43 |
| |
44 |
| |
45 |
2
| public static String paramNotNull(String parameterName)
|
46 |
| { |
47 |
2
| return _formatter.format("param-not-null", parameterName);
|
48 |
| } |
49 |
| |
50 |
| |
51 |
2
| public static String paramWrongType(String parameterName, Object parameter, Class expectedType)
|
52 |
| { |
53 |
2
| return _formatter.format("param-wrong-type", parameterName, ClassFabUtils
|
54 |
| .getJavaClassName(parameter.getClass()), ClassFabUtils |
55 |
| .getJavaClassName(expectedType)); |
56 |
| } |
57 |
| } |