public interface LocalizationBundleFactory extends ConfigurableComponent
Extremely simple interface that is implemented to resolve the ResourceBundles from which various Strings are pulled at runtime. Can be implemented using property resource bundles, class resource bundles or anything else a developer can dream up.
The bundles returned from each method do not need to be discrete, and may all be the same bundle.
Modifier and Type | Method and Description |
---|---|
java.util.ResourceBundle |
getErrorMessageBundle(java.util.Locale locale)
Returns the ResourceBundle from which to draw error messages for the specified locale.
|
java.util.ResourceBundle |
getFormFieldBundle(java.util.Locale locale)
Returns the ResourceBundle from which to draw the names of form fields for the
specified locale.
|
init
java.util.ResourceBundle getErrorMessageBundle(java.util.Locale locale) throws java.util.MissingResourceException
locale
- the locale that is in use for the current requestjava.util.MissingResourceException
- when a bundle that is expected to be present cannot
be located.java.util.ResourceBundle getFormFieldBundle(java.util.Locale locale) throws java.util.MissingResourceException
locale
- the locale that is in use for the current requestjava.util.MissingResourceException
- when a bundle that is expected to be present cannot
be located.? Copyright 2005-2006, Stripes Development Team.