-
Notifications
You must be signed in to change notification settings - Fork 15
Roadmap
Obviously.
And, if possible, compatible with 0.1.
Right now there are two classes involved. In order:
-
MessageBundle; -
MessageSource.
The idea here is to introduce one intermediary class, MessageSourceProvider (or MessageProvider?). Something like this:
public interface MessageSourceProvider
{
MessageSource getSource(final Locale locale);
}This would return null if no source was found.
This would also require that MessageBundle be rewritten so that it cycle through providers instead of MessageSources as it does now.
As to caching, right now a caching implementation exists in CachedMessageBundle; it would migrate to an implementation of MessageSourceProvider. Note: port the existing timeout mechanics! They are known to work since they have been tested already.
To copy what ResourceBundle does. Also printf()-like support?
The first implementation of an i18n bundle will record lookup results (failures and successes) permanently.
Try and devise at least a failure expiration policy? What about success expiration policy?