public final class MessageBundleBuilder extends Object implements Thawed<MessageBundle>
You cannot instantiate this class directly: use MessageBundle.newBuilder(), or thaw another
bundle.
This class is the Thawed counterpart of a MessageBundle.
MessageBundle| Modifier and Type | Method and Description |
|---|---|
MessageBundleBuilder |
appendBundle(MessageBundle bundle)
Append all message source providers from another bundle
|
MessageBundleBuilder |
appendProvider(MessageSourceProvider provider)
Append a message provider
|
MessageBundleBuilder |
appendSource(Locale locale,
MessageSource source)
Convenience method to append a single-source provider for a given locale
|
MessageBundleBuilder |
appendSource(MessageSource source)
Convenience method to append a single-source provider
|
MessageBundle |
freeze() |
MessageBundleBuilder |
prependBundle(MessageBundle bundle)
Prepend all message source providers from another bundle
|
MessageBundleBuilder |
prependProvider(MessageSourceProvider provider)
Prepend a message provider
|
MessageBundleBuilder |
prependSource(Locale locale,
MessageSource source)
Convenience method to prepend a single-source provider for a given locale
|
MessageBundleBuilder |
prependSource(MessageSource source)
Convenience method to prepend a single-source provider
|
public MessageBundleBuilder appendProvider(MessageSourceProvider provider)
provider - the providerNullPointerException - provider is nullpublic MessageBundleBuilder prependProvider(MessageSourceProvider provider)
provider - the providerNullPointerException - provider is nullpublic MessageBundleBuilder appendSource(MessageSource source)
source - the message sourceStaticMessageSourceProvider.withSingleSource(MessageSource)public MessageBundleBuilder prependSource(MessageSource source)
source - the message sourceStaticMessageSourceProvider.withSingleSource(MessageSource)public MessageBundleBuilder appendSource(Locale locale, MessageSource source)
locale - the localesource - the message sourceStaticMessageSourceProvider.withSingleSource(Locale, MessageSource)public MessageBundleBuilder prependSource(Locale locale, MessageSource source)
locale - the localesource - the message sourceStaticMessageSourceProvider.withSingleSource(Locale, MessageSource)public MessageBundleBuilder appendBundle(MessageBundle bundle)
bundle - the bundleNullPointerException - bundle is nullpublic MessageBundleBuilder prependBundle(MessageBundle bundle)
bundle - the bundleNullPointerException - bundle is nullpublic MessageBundle freeze()
freeze in interface Thawed<MessageBundle>