|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| package org.apache.tapestry.record; |
|
16 |
| |
|
17 |
| import org.apache.hivemind.impl.MessageFormatter; |
|
18 |
| import org.apache.tapestry.IComponent; |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| class RecordMessages |
|
25 |
| { |
|
26 |
| private final static MessageFormatter _formatter = new MessageFormatter(RecordMessages.class); |
|
27 |
| |
|
28 |
6
| static String unknownPersistenceStrategy(String name)
|
|
29 |
| { |
|
30 |
6
| return _formatter.format("unknown-persistence-strategy", name);
|
|
31 |
| } |
|
32 |
| |
|
33 |
3
| static String missingPropertySpecification(String propertyName, IComponent component)
|
|
34 |
| { |
|
35 |
3
| return _formatter.format("missing-property-specification", propertyName, component
|
|
36 |
| .getExtendedId(), component.getSpecification().getSpecificationLocation()); |
|
37 |
| } |
|
38 |
| |
|
39 |
3
| static String recorderLocked(String propertyName, IComponent component)
|
|
40 |
| { |
|
41 |
3
| return _formatter.format("recorder-locked", propertyName, component.getExtendedId());
|
|
42 |
| } |
|
43 |
| |
|
44 |
3
| static String decodeFailure(Throwable cause)
|
|
45 |
| { |
|
46 |
3
| return _formatter.format("decode-failure", cause);
|
|
47 |
| } |
|
48 |
| |
|
49 |
3
| static String encodeFailure(Throwable cause)
|
|
50 |
| { |
|
51 |
3
| return _formatter.format("encode-failure", cause);
|
|
52 |
| } |
|
53 |
| |
|
54 |
3
| static String unknownPrefix(String prefix)
|
|
55 |
| { |
|
56 |
3
| return _formatter.format("unknown-prefix", prefix);
|
|
57 |
| } |
|
58 |
| } |