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 |
|
final class BindingMessages |
26 |
|
{ |
27 |
2 |
private static final MessageFormatter _formatter = new MessageFormatter(BindingMessages.class); |
28 |
|
|
29 |
|
|
30 |
0 |
private BindingMessages() { } |
31 |
|
|
32 |
|
static String convertObjectError(IBinding binding, Throwable cause) |
33 |
|
{ |
34 |
1 |
return _formatter.format("convert-object-error", binding.getDescription(), cause); |
35 |
|
} |
36 |
|
|
37 |
|
static String readOnlyBinding(IBinding binding) |
38 |
|
{ |
39 |
2 |
return _formatter.format("read-only-binding", binding.getDescription(), binding); |
40 |
|
} |
41 |
|
|
42 |
|
static String missingAsset(IComponent component, String assetName) |
43 |
|
{ |
44 |
1 |
return _formatter.format("missing-asset", component.getExtendedId(), assetName); |
45 |
|
} |
46 |
|
|
47 |
|
static String listenerMethodFailure(IComponent component, String methodName, Throwable cause) |
48 |
|
{ |
49 |
1 |
return _formatter.format( |
50 |
|
"listener-method-failure", |
51 |
|
methodName, |
52 |
|
component.getExtendedId(), |
53 |
|
cause); |
54 |
|
} |
55 |
|
|
56 |
|
public static String unknownComponent(IComponent component, String id) |
57 |
|
{ |
58 |
1 |
return _formatter.format("unknown-component", id, component); |
59 |
|
} |
60 |
|
} |