]
Hardy Ferentschik updated HV-251:
---------------------------------
Assignee: Gunnar Morling
ResourceMessageInterpolater - allow create with map of user resource
bundles
-----------------------------------------------------------------------------
Key: HV-251
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-251
Project: Hibernate Validator
Issue Type: Improvement
Components: engine
Affects Versions: 4.0.0.GA
Reporter: saki
Assignee: Gunnar Morling
Priority: Minor
Fix For: 4.1.0-Beta-1
Allow user to supply to message interpolator constructor map of resource bundles.
Use case: supply resource bundles loaded from XML
public ResourceBundleMessageInterpolator(Map<Locale, ResourceBundle>
userSuppliedBundlesMap) {
defaultLocale = Locale.getDefault();
this.userBundlesMap.putAll(userSuppliedBundlesMap);
defaultBundlesMap.put( defaultLocale, ResourceBundle.getBundle(
DEFAULT_VALIDATION_MESSAGES, defaultLocale ) );
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: