1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.tapestry.binding; |
16 |
| |
17 |
| import org.apache.hivemind.impl.MessageFormatter; |
18 |
| import org.apache.tapestry.IBinding; |
19 |
| import org.apache.tapestry.IComponent; |
20 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| class BindingMessages |
26 |
| { |
27 |
| private final static MessageFormatter _formatter = new MessageFormatter(BindingMessages.class); |
28 |
| |
29 |
1
| static String convertObjectError(IBinding binding, Throwable cause)
|
30 |
| { |
31 |
1
| return _formatter.format("convert-object-error", binding.getDescription(), cause);
|
32 |
| } |
33 |
| |
34 |
2
| static String readOnlyBinding(IBinding binding)
|
35 |
| { |
36 |
2
| return _formatter.format("read-only-binding", binding.getDescription(), binding);
|
37 |
| } |
38 |
| |
39 |
1
| static String missingAsset(IComponent component, String assetName)
|
40 |
| { |
41 |
1
| return _formatter.format("missing-asset", component.getExtendedId(), assetName);
|
42 |
| } |
43 |
| |
44 |
1
| static String listenerMethodFailure(IComponent component, String methodName, Throwable cause)
|
45 |
| { |
46 |
1
| return _formatter.format(
|
47 |
| "listener-method-failure", |
48 |
| methodName, |
49 |
| component.getExtendedId(), |
50 |
| cause); |
51 |
| } |
52 |
| } |