Interface | Description |
---|---|
MessageSource |
Interface for one message source
|
Class | Description |
---|---|
MapMessageSource |
A
Map -based message source |
MapMessageSource.Builder |
Builder class for a
MapMessageSource |
PropertiesMessageSource |
A message source built from a properties files
|
Message sources are the most low level component of the API. They are, in essence, maps with key/value pairs of strings.
Implementations of MessageSource
should return null
if no message is found for a given key.
Two implementations are provided: one using a simple Map
as a backend, and another one for reading property files, either from the
classpath or from files on the filesystem.