1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
package org.apache.tapestry; |
16 | |
|
17 | |
import org.apache.hivemind.impl.MessageFormatter; |
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
final class TapestryMessages |
24 | |
{ |
25 | 0 | private static final MessageFormatter _formatter = new MessageFormatter(TapestryMessages.class, |
26 | |
"TapestryStrings2"); |
27 | |
|
28 | |
|
29 | 0 | private TapestryMessages() { } |
30 | |
|
31 | |
static String servletInitFailure(Throwable cause) |
32 | |
{ |
33 | 0 | return _formatter.format("servlet-init-failure", cause); |
34 | |
} |
35 | |
|
36 | |
static String componentIsLocked(IComponent component) |
37 | |
{ |
38 | 0 | return _formatter.format("component-is-locked", component.getExtendedId()); |
39 | |
} |
40 | |
|
41 | |
static String servletInit(String name, long elapsedToRegistry, long elapsedOverall) |
42 | |
{ |
43 | 0 | return _formatter.format("servlet-init", name, new Long(elapsedToRegistry), new Long( |
44 | |
elapsedOverall)); |
45 | |
} |
46 | |
|
47 | |
static String nonUniqueAttribute(Object newInstance, String key, Object existingInstance) |
48 | |
{ |
49 | 0 | return _formatter.format("non-unique-attribute", newInstance, key, existingInstance); |
50 | |
} |
51 | |
|
52 | |
static String noPageRenderSupport(IComponent component) |
53 | |
{ |
54 | 0 | return _formatter.format("no-page-render-support", component.getExtendedId()); |
55 | |
} |
56 | |
|
57 | |
static String noForm(IComponent component) |
58 | |
{ |
59 | 0 | return _formatter.format("no-form", component.getExtendedId()); |
60 | |
} |
61 | |
|
62 | |
static String providedByEnhancement(String methodName) |
63 | |
{ |
64 | 0 | return _formatter.format("provided-by-enhancement", methodName); |
65 | |
} |
66 | |
|
67 | |
static String attemptToChangeContainedComponent(IComponent component) |
68 | |
{ |
69 | 0 | return _formatter |
70 | |
.format("attempt-to-change-contained-component", component.getExtendedId()); |
71 | |
} |
72 | |
|
73 | |
static String attemptToChangeEventInvoker(IComponent component) |
74 | |
{ |
75 | 0 | return _formatter |
76 | |
.format("attempt-to-change-event-invoker", component.getExtendedId()); |
77 | |
} |
78 | |
|
79 | |
static String componentWrongType(IComponent component, Class expectedType) |
80 | |
{ |
81 | 0 | return _formatter.format("component-wrong-type", component.getExtendedId(), expectedType |
82 | |
.getName()); |
83 | |
} |
84 | |
} |