| Package | Description |
|---|---|
| com.github.fge.msgsimple.bundle |
Main class; property-based bundle provider
|
| com.github.fge.msgsimple.provider |
Message source provider interface and implementations
|
| com.github.fge.msgsimple.source |
Message sources
|
| Modifier and Type | Method and Description |
|---|---|
MessageBundleBuilder |
MessageBundleBuilder.appendSource(Locale locale,
MessageSource source)
Convenience method to append a single-source provider for a given locale
|
MessageBundleBuilder |
MessageBundleBuilder.appendSource(MessageSource source)
Convenience method to append a single-source provider
|
MessageBundleBuilder |
MessageBundleBuilder.prependSource(Locale locale,
MessageSource source)
Convenience method to prepend a single-source provider for a given locale
|
MessageBundleBuilder |
MessageBundleBuilder.prependSource(MessageSource source)
Convenience method to prepend a single-source provider
|
| Modifier and Type | Method and Description |
|---|---|
MessageSource |
LoadingMessageSourceProvider.getMessageSource(Locale locale) |
MessageSource |
StaticMessageSourceProvider.getMessageSource(Locale locale) |
MessageSource |
MessageSourceProvider.getMessageSource(Locale locale)
Provide a message source for a given locale
|
MessageSource |
MessageSourceLoader.load(Locale locale)
Load a message source for a locale
|
| Modifier and Type | Method and Description |
|---|---|
StaticMessageSourceProvider.Builder |
StaticMessageSourceProvider.Builder.addSource(Locale locale,
MessageSource source)
Add a message source for a given locale
|
LoadingMessageSourceProvider.Builder |
LoadingMessageSourceProvider.Builder.setDefaultSource(MessageSource defaultSource)
Set the default message source if the loader fails to load
|
StaticMessageSourceProvider.Builder |
StaticMessageSourceProvider.Builder.setDefaultSource(MessageSource source)
Set a default message source
|
static MessageSourceProvider |
StaticMessageSourceProvider.withSingleSource(Locale locale,
MessageSource source)
Convenience method to create a provider with a single source for a
specific locale
|
static MessageSourceProvider |
StaticMessageSourceProvider.withSingleSource(MessageSource source)
Convenience method to create a provider with a single source
|
| Modifier and Type | Class and Description |
|---|---|
class |
MapMessageSource
A
Map-based message source |
class |
PropertiesMessageSource
A message source built from a properties files
|
| Modifier and Type | Method and Description |
|---|---|
MessageSource |
MapMessageSource.Builder.build()
Build a new message source from the contents of this builder
|
static MessageSource |
PropertiesMessageSource.fromFile(File file)
Create a message source from a properties file on the filesystem using
UTF-8
|
static MessageSource |
PropertiesMessageSource.fromFile(File file,
Charset charset)
Create a message source from a properties file on the filesystem using
the specified charset
|
static MessageSource |
PropertiesMessageSource.fromPath(String path)
Create a message source from a properties file on the filesystem using
the specified encoding
|
static MessageSource |
PropertiesMessageSource.fromPath(String path,
Charset charset)
Create a message source from a properties file on the filesystem using
the specified charset
|
static MessageSource |
PropertiesMessageSource.fromResource(String resourcePath)
Create a message source from a classpath resource using UTF-8
|
static MessageSource |
PropertiesMessageSource.fromResource(String resourcePath,
Charset charset)
Create a message source from a classpath resource using the specified
charset
|
Copyright © 2013. All Rights Reserved.