You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With generic signatures in ResourceResolver, it and MessageSource feel almost identical.
It could be more efficient to have ResourceResolver< String > or at most a MessageSource (or MessageResource ;-) simply extend ResourceResolver< String > providing extra methods like asResourceBundle().
The text was updated successfully, but these errors were encountered:
+1
I think it's ok to call "String myMessage = source.resolveResource("dialog.title", myLocal)" instead of "String myMessage = source.getMessage("dialog.title", myLocal)" since a text/message is a resource, too.
True, they look very similar but MessageSource has a narrower contract than ResourceResolver (it does not need the Converted assisted methods). Also, ResourceResolver cannot be generified to a single type (see #6)
With generic signatures in ResourceResolver, it and MessageSource feel almost identical.
It could be more efficient to have ResourceResolver< String > or at most a MessageSource (or MessageResource ;-) simply extend ResourceResolver< String > providing extra methods like asResourceBundle().
The text was updated successfully, but these errors were encountered: