public class L10nCache extends ServerSideCache implements BackendL10nProviderI
Constructor and Description |
---|
L10nCache(DBManLocalI _dbm) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAvailableLocaleNamesForUserInterface() |
L10nLocale[] |
getAvailableLocales() |
L10nLocale[] |
getAvailableLocalesForUserInterface() |
L10nPack |
getL10nPack(java.lang.String bundleName,
java.lang.String locale)
Retrieves a specific
L10nPack by its bundle name and locale. |
L10nPack[] |
getL10nPackPreload(java.lang.String localeName) |
L10nPack[] |
getL10nPacks(java.lang.String[] packNames,
java.lang.String localeName)
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.
|
void |
prefetchL10nPacks()
Initiates a prefetching process for L10n packs.
|
L10nPathEntry[] |
recalcPath() |
awaitInitFinished, getCachingLoader, getDBMan, processDBManEvent
public L10nCache(DBManLocalI _dbm)
public L10nLocale[] getAvailableLocales()
public L10nLocale[] getAvailableLocalesForUserInterface()
public java.lang.String[] getAvailableLocaleNamesForUserInterface()
getAvailableLocaleNamesForUserInterface
in interface BackendL10nProviderI
public L10nPack[] getL10nPackPreload(java.lang.String localeName)
getL10nPackPreload
in interface BackendL10nProviderI
public L10nPathEntry[] recalcPath()
public boolean isOperational()
L10nPackProviderI
isOperational
in interface L10nPackProviderI
true
if the provider is operational, false
otherwise.public java.lang.String getL10nViaString()
L10nPackProviderI
getL10nViaString
in interface L10nPackProviderI
public L10nPack getL10nPack(java.lang.String bundleName, java.lang.String locale)
L10nPackProviderI
L10nPack
by its bundle name and locale.getL10nPack
in interface L10nPackProviderI
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.public L10nPack[] getL10nPacks(java.lang.String[] packNames, java.lang.String localeName)
L10nPackProviderI
L10nPack
objects for multiple specified bundle names and a single locale.getL10nPacks
in interface L10nPackProviderI
packNames
- An array of String
names of the L10n bundles to retrieve.localeName
- 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.public L10nPathEntry[] getL10nPath()
L10nPackProviderI
These path entries define the locations or priorities for searching localization resources within the overall L10n system.
getL10nPath
in interface L10nPackProviderI
L10nPathEntry
objects.public void prefetchL10nPacks()
L10nPackProviderI
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.
prefetchL10nPacks
in interface L10nPackProviderI
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.