1
2
3
4
5
6
7 package org.mule.example.hello;
8
9 import org.mule.config.i18n.MessageFactory;
10
11
12
13
14
15
16 public class LocaleMessage extends MessageFactory
17 {
18 private static final LocaleMessage factory = new LocaleMessage();
19
20 private static final String BUNDLE_PATH = "messages.hello-example-messages";
21
22 public static String getGreetingPart2()
23 {
24 return factory.getString(BUNDLE_PATH, 1);
25 }
26
27 public static String getGreetingPart1()
28 {
29 return factory.getString(BUNDLE_PATH, 2);
30 }
31
32 public static String getPrompt()
33 {
34 return factory.getString(BUNDLE_PATH, 3);
35 }
36
37 public static String getInvalidUserNameError()
38 {
39 return factory.getString(BUNDLE_PATH, 4);
40 }
41 }