|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| package org.apache.tapestry.engine.state; |
|
16 |
| |
|
17 |
| import org.apache.hivemind.impl.MessageFormatter; |
|
18 |
| |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| class StateMessages |
|
24 |
| { |
|
25 |
| private final static MessageFormatter _formatter = new MessageFormatter(StateMessages.class); |
|
26 |
| |
|
27 |
6
| static String unknownStateObjectName(String objectName)
|
|
28 |
| { |
|
29 |
6
| return _formatter.format("unknown-state-object-name", objectName);
|
|
30 |
| } |
|
31 |
| |
|
32 |
3
| static String unableToInstantiateObject(Class objectClass, Throwable cause)
|
|
33 |
| { |
|
34 |
3
| return _formatter.format("unable-to-instantiate-object", objectClass, cause);
|
|
35 |
| } |
|
36 |
| |
|
37 |
6
| static String unableToInstantiateObject(String className, Throwable cause)
|
|
38 |
| { |
|
39 |
6
| return _formatter.format("unable-to-instantiate-object", className, cause);
|
|
40 |
| } |
|
41 |
| |
|
42 |
6
| static String unknownScope(String objectName, String scope)
|
|
43 |
| { |
|
44 |
6
| return _formatter.format("unknown-scope", objectName, scope);
|
|
45 |
| } |
|
46 |
| |
|
47 |
| } |