| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Stripes
Revision: 949
Author: javelotinfo
Date: 16 Jul 2008 17:04:37
Changes:Declare constants
Files:| ... | ...@@ -34,6 +34,12 @@ | |
| 34 | 34 | /** The name of the default resource bundle for Stripes. */ |
| 35 | 35 | public static final String BUNDLE_NAME = "StripesResources"; |
| 36 | 36 | |
| 37 | /** The configuration parameter for changing the default error message resource bundle. */ | |
| 38 | public static final String ERROR_MESSAGE_BUNDLE = "LocalizationBundleFactory.ErrorMessageBundle"; | |
| 39 | ||
| 40 | /** The configuration parameter for changing the default field name resource bundle. */ | |
| 41 | public static final String FIELD_NAME_BUNDLE = "LocalizationBundleFactory.FieldNameBundle"; | |
| 42 | ||
| 37 | 43 | /** Holds the configuration passed in at initialization time. */ |
| 38 | 44 | private Configuration configuration; |
| 39 | 45 | private String errorBundleName; |
| ... | ...@@ -48,13 +54,13 @@ | |
| 48 | 54 | setConfiguration(configuration); |
| 49 | 55 | |
| 50 | 56 | this.errorBundleName = configuration.getBootstrapPropertyResolver(). |
| 51 | getProperty("LocalizationBundleFactory.ErrorMessageBundle"); | |
| 57 | getProperty(ERROR_MESSAGE_BUNDLE); | |
| 52 | 58 | if (this.errorBundleName == null) { |
| 53 | 59 | this.errorBundleName = BUNDLE_NAME; |
| 54 | 60 | } |
| 55 | 61 | |
| 56 | 62 | this.fieldBundleName = configuration.getBootstrapPropertyResolver(). |
| 57 | getProperty("LocalizationBundleFactory.FieldNameBundle"); | |
| 63 | getProperty(FIELD_NAME_BUNDLE); | |
| 58 | 64 | if (this.fieldBundleName == null) { |
| 59 | 65 | this.fieldBundleName = BUNDLE_NAME; |
| 60 | 66 | } |