hi hardy,

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).
if we can't agree on MessageResolver, i would suggest MessageSource (similar to [3]).


[1] 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
[2] 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
[3] http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/context/MessageSource.html

2012/6/24 Hardy Ferentschik <hardy@hibernate.org>

On Jun 24, 2012, at 11:57 AM, Gerhard Petracek wrote:

> one of the first topics was to split MessageInterpolator (-> MessageInterpolator + MessageResolver).
> however, as i see the jira ticket [1] is still not resolved.

Ahh, right. That's what Hibernate Validator calls ResourceBundleLocator (imo a better name).

> since it's a pretty obvious topic, i thought we are done with it.

+1 I think there are several issues which we talked a lot about, but never made a final decision.
Regarding this particular issue we never talked about concrete name and interface for the functionality.

Hibernate Validator uses:

public interface ResourceBundleLocator {

        * Returns a resource bundle for the given locale.
        * @param locale A locale, for which a resource bundle shall be retrieved. Must
        * not be null.
        * @return A resource bundle for the given locale. May be null, if no such
        *         bundle exists.
       ResourceBundle getResourceBundle(Locale locale);

Does this sound reasonable?

Seems there is a whole bunch of issues related (directly and indirectly)  to this:

[1] https://hibernate.onjira.com/browse/BVAL-217
[2] https://hibernate.onjira.com/browse/BVAL-250
[3] https://hibernate.onjira.com/browse/BVAL-233


beanvalidation-dev mailing list