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 |
4
| static String unknownPersistenceStrategy(String name)
|
29 |
| { |
30 |
4
| return _formatter.format("unknown-persistence-strategy", name);
|
31 |
| } |
32 |
| |
33 |
2
| static String missingPropertySpecification(String propertyName, IComponent component)
|
34 |
| { |
35 |
2
| return _formatter.format("missing-property-specification", propertyName, component
|
36 |
| .getExtendedId(), component.getSpecification().getSpecificationLocation()); |
37 |
| } |
38 |
| |
39 |
2
| static String recorderLocked(String propertyName, IComponent component)
|
40 |
| { |
41 |
2
| return _formatter.format("recorder-locked", propertyName, component.getExtendedId());
|
42 |
| } |
43 |
| |
44 |
2
| static String decodeFailure(Throwable cause)
|
45 |
| { |
46 |
2
| return _formatter.format("decode-failure", cause);
|
47 |
| } |
48 |
| |
49 |
2
| static String encodeFailure(Throwable cause)
|
50 |
| { |
51 |
2
| return _formatter.format("encode-failure", cause);
|
52 |
| } |
53 |
| |
54 |
2
| static String unknownPrefix(String prefix)
|
55 |
| { |
56 |
2
| return _formatter.format("unknown-prefix", prefix);
|
57 |
| } |
58 |
| } |