See: Description
Interface | Description |
---|---|
MessageSourceLoader |
Load a message source for a given locale
|
MessageSourceProvider |
Provider for one message source, according to a given locale
|
Class | Description |
---|---|
LoadingMessageSourceProvider |
A caching, on-demand loading message source provider with configurable expiry
|
LoadingMessageSourceProvider.Builder |
Builder class for a
LoadingMessageSourceProvider |
StaticMessageSourceProvider |
Static message source provider
|
StaticMessageSourceProvider.Builder |
Builder for a
StaticMessageSourceProvider |
A MessageSourceProvider
associates MessageSource
s with
locales.
Two implementations are provided: one with static mappings, another doing
on demand loading. The latter requires that you provide an implementation of
MessageSourceLoader
. You can
customize the expiration delay (or no expiration at all) and the load
timeout. The default values are respectively 10 minutes and 5 seconds.