[hibernate-issues] [Hibernate-JIRA] Commented: (HV-556) Make AggregateResourceBundleLocator an interface to be included into the public api of HV

Gunnar Morling (JIRA) noreply at atlassian.com
Sun Feb 19 12:20:09 EST 2012


    [ https://hibernate.onjira.com/browse/HV-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45547#comment-45547 ] 

Gunnar Morling commented on HV-556:
-----------------------------------

We may also consider to only have {{ResourceBundleLocator}} in the public part, accompanied by a factory for creating instances as needed:

{code}
//returns PlatformResourceBundleLocator
ResourceBundleLocator locator = new ResourceBundleLocatorFactory().forBundle("foo");

//returns AggregateResourceBundleLocator
ResourceBundleLocator locator = new ResourceBundleLocatorFactory().forBundles("foo", "bar");
{code}

> Make AggregateResourceBundleLocator an interface to be included into the public api of HV
> -----------------------------------------------------------------------------------------
>
>                 Key: HV-556
>                 URL: https://hibernate.onjira.com/browse/HV-556
>             Project: Hibernate Validator
>          Issue Type: Bug
>    Affects Versions: 4.2.0.Final
>            Reporter: Hardy Ferentschik
>             Fix For: 5.x
>
>
> Currently _AggregateResourceBundleLocator_ is a class, but as part of the spi/public/internal split it should become an interface which is part of the public api.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list