[hibernate-issues] [Hibernate-JIRA] Created: (HV-251) ResourceMessageInterpolater - allow create with map of user resource bundles

saki (JIRA) noreply at atlassian.com
Tue Oct 13 07:20:41 EDT 2009


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
            Priority: Minor


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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list