@NotThreadSafe public static final class StaticMessageSourceProvider.Builder extends Object
StaticMessageSourceProvider| Modifier and Type | Method and Description |
|---|---|
StaticMessageSourceProvider.Builder |
addSource(Locale locale,
MessageSource source)
Add a message source for a given locale
|
MessageSourceProvider |
build()
Build the message source provider
|
StaticMessageSourceProvider.Builder |
setDefaultSource(MessageSource source)
Set a default message source
|
public StaticMessageSourceProvider.Builder addSource(Locale locale, MessageSource source)
locale - the localesource - the message sourceNullPointerException - either the locale or the source is nullpublic StaticMessageSourceProvider.Builder setDefaultSource(MessageSource source)
source - the message sourceNullPointerException - source is nullpublic MessageSourceProvider build()
StaticMessageSourceProvider