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 |
|
final class StateMessages |
24 |
|
{ |
25 |
2 |
private static final MessageFormatter _formatter = new MessageFormatter(StateMessages.class); |
26 |
|
|
27 |
|
|
28 |
0 |
private StateMessages() { } |
29 |
|
|
30 |
|
static String unknownStateObjectName(String objectName) |
31 |
|
{ |
32 |
2 |
return _formatter.format("unknown-state-object-name", objectName); |
33 |
|
} |
34 |
|
|
35 |
|
static String unableToInstantiateObject(Class objectClass, Throwable cause) |
36 |
|
{ |
37 |
1 |
return _formatter.format("unable-to-instantiate-object", objectClass, cause); |
38 |
|
} |
39 |
|
|
40 |
|
static String unableToInstantiateObject(String className, Throwable cause) |
41 |
|
{ |
42 |
1 |
return _formatter.format("unable-to-instantiate-object", className, cause); |
43 |
|
} |
44 |
|
|
45 |
|
static String unknownScope(String objectName, String scope) |
46 |
|
{ |
47 |
2 |
return _formatter.format("unknown-scope", objectName, scope); |
48 |
|
} |
49 |
|
|
50 |
|
} |