|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalizationBundleFactory
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.
Method Summary | |
---|---|
ResourceBundle |
getErrorMessageBundle(Locale locale)
Returns the ResourceBundle from which to draw error messages for the specified locale. |
ResourceBundle |
getFormFieldBundle(Locale locale)
Returns the ResourceBundle from which to draw the names of form fields for the specified locale. |
Methods inherited from interface net.sourceforge.stripes.config.ConfigurableComponent |
---|
init |
Method Detail |
---|
ResourceBundle getErrorMessageBundle(Locale locale) throws MissingResourceException
locale
- the locale that is in use for the current request
MissingResourceException
- when a bundle that is expected to be present cannot
be located.ResourceBundle getFormFieldBundle(Locale locale) throws MissingResourceException
locale
- the locale that is in use for the current request
MissingResourceException
- when a bundle that is expected to be present cannot
be located.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |