hi hardy,<div><br></div><div>maybe it isn't that obvious since a ResourceBundleLocator isn't only about resource-bundles - see [1] and [2] -> i don't agree that it's a better name (since it's something slightly different).</div>
<div>if we can't agree on MessageResolver, i would suggest MessageSource (similar to [3]).</div><div><br></div><div><font color="#222222" face="arial, sans-serif">regards,</font></div><div><font color="#222222" face="arial, sans-serif">gerhard</font></div>
<div><br></div><div>[1] <a href="https://svn.apache.org/repos/asf/myfaces/extensions/validator/trunk/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/MessageResolver.java">https://svn.apache.org/repos/asf/myfaces/extensions/validator/trunk/core/src/main/java/org/apache/myfaces/extensions/validator/core/validation/message/resolver/MessageResolver.java</a><br>
[2] <a href="https://svn.apache.org/repos/asf/myfaces/extensions/cdi/tags/extcdi-1.0.5/jse-modules/message-module/api/src/main/java/org/apache/myfaces/extensions/cdi/message/api/MessageResolver.java">https://svn.apache.org/repos/asf/myfaces/extensions/cdi/tags/extcdi-1.0.5/jse-modules/message-module/api/src/main/java/org/apache/myfaces/extensions/cdi/message/api/MessageResolver.java</a><br>
[3] <a href="http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/context/MessageSource.html">http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/context/MessageSource.html</a><br>
<br><br><br><div class="gmail_quote">2012/6/24 Hardy Ferentschik <span dir="ltr"><<a href="mailto:hardy@hibernate.org" target="_blank">hardy@hibernate.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Jun 24, 2012, at 11:57 AM, Gerhard Petracek wrote:<br>
<br>
> one of the first topics was to split MessageInterpolator (-> MessageInterpolator + MessageResolver).<br>
> however, as i see the jira ticket [1] is still not resolved.<br>
<br>
</div>Ahh, right. That's what Hibernate Validator calls ResourceBundleLocator (imo a better name).<br>
<div class="im"><br>
> since it's a pretty obvious topic, i thought we are done with it.<br>
<br>
</div>+1 I think there are several issues which we talked a lot about, but never made a final decision.<br>
Regarding this particular issue we never talked about concrete name and interface for the functionality.<br>
<br>
Hibernate Validator uses:<br>
<br>
public interface ResourceBundleLocator {<br>
<br>
/**<br>
* Returns a resource bundle for the given locale.<br>
*<br>
* @param locale A locale, for which a resource bundle shall be retrieved. Must<br>
* not be null.<br>
*<br>
* @return A resource bundle for the given locale. May be null, if no such<br>
* bundle exists.<br>
*/<br>
ResourceBundle getResourceBundle(Locale locale);<br>
}<br>
<br>
Does this sound reasonable?<br>
<br>
Seems there is a whole bunch of issues related (directly and indirectly) to this:<br>
<br>
[1] <a href="https://hibernate.onjira.com/browse/BVAL-217" target="_blank">https://hibernate.onjira.com/browse/BVAL-217</a><br>
[2] <a href="https://hibernate.onjira.com/browse/BVAL-250" target="_blank">https://hibernate.onjira.com/browse/BVAL-250</a><br>
[3] <a href="https://hibernate.onjira.com/browse/BVAL-233" target="_blank">https://hibernate.onjira.com/browse/BVAL-233</a><br>
<div class="HOEnZb"><div class="h5"><br>
--Hardy<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
beanvalidation-dev mailing list<br>
<a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/beanvalidation-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/beanvalidation-dev</a><br>
</div></div></blockquote></div><br></div>