public interface L10nPackProviderI
Implementations of this interface are responsible for delivering L10nPack
objects, which contain localized key-value pairs. This interface abstracts the source
and mechanism of how these packs are retrieved (e.g., from files, database, network)
and whether the provider is currently available.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
$0 |
Modifier and Type | Method and Description |
---|---|
L10nPack |
getL10nPack(java.lang.String bundleName,
java.lang.String locale)
Retrieves a specific
L10nPack by its bundle name and locale. |
L10nPack[] |
getL10nPacks(java.lang.String[] bundleNames,
java.lang.String locale)
Retrieves an array of
L10nPack objects for multiple specified bundle names and a single locale. |
L10nPathEntry[] |
getL10nPath()
Retrieves the localization path entries provided by this pack provider.
|
java.lang.String |
getL10nViaString()
Provides a descriptive string indicating the means by which localization (L10n) data was delivered.
|
boolean |
isOperational()
Checks if this L10n pack provider is currently operational and ready to serve requests.
|
default void |
prefetchL10nPacks()
Initiates a prefetching process for L10n packs.
|
static final java.lang.String $0
boolean isOperational()
true
if the provider is operational, false
otherwise.java.lang.String getL10nViaString()
L10nPack getL10nPack(java.lang.String bundleName, java.lang.String locale)
L10nPack
by its bundle name and locale.bundleName
- The name of the L10n bundle to retrieve.locale
- The name of the Locale
for which to retrieve the pack.L10nPack
, or null
if not found.L10nPack[] getL10nPacks(java.lang.String[] bundleNames, java.lang.String locale)
L10nPack
objects for multiple specified bundle names and a single locale.bundleNames
- An array of String
names of the L10n bundles to retrieve.locale
- The name of the Locale
for which to retrieve the packs.L10nPack
s corresponding to the requested bundle names,
or an empty array if none are found.L10nPathEntry[] getL10nPath()
These path entries define the locations or priorities for searching localization resources within the overall L10n system.
L10nPathEntry
objects.default void prefetchL10nPacks()
This default method can be overridden by implementations to perform asynchronous loading or caching of localization data in the background. The base implementation does nothing.
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.