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, processDBManEventpublic L10nCache(DBManLocalI _dbm)
public L10nLocale[] getAvailableLocales()
public L10nLocale[] getAvailableLocalesForUserInterface()
public java.lang.String[] getAvailableLocaleNamesForUserInterface()
getAvailableLocaleNamesForUserInterface in interface BackendL10nProviderIpublic L10nPack[] getL10nPackPreload(java.lang.String localeName)
getL10nPackPreload in interface BackendL10nProviderIpublic L10nPathEntry[] recalcPath()
public boolean isOperational()
L10nPackProviderIisOperational in interface L10nPackProviderItrue if the provider is operational, false otherwise.public java.lang.String getL10nViaString()
L10nPackProviderIgetL10nViaString in interface L10nPackProviderIpublic L10nPack getL10nPack(java.lang.String bundleName, java.lang.String locale)
L10nPackProviderIL10nPack by its bundle name and locale.getL10nPack in interface L10nPackProviderIbundleName - 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)
L10nPackProviderIL10nPack objects for multiple specified bundle names and a single locale.getL10nPacks in interface L10nPackProviderIpackNames - An array of String names of the L10n bundles to retrieve.localeName - The name of the Locale for which to retrieve the packs.L10nPacks corresponding to the requested bundle names,
or an empty array if none are found.public L10nPathEntry[] getL10nPath()
L10nPackProviderIThese path entries define the locations or priorities for searching localization resources within the overall L10n system.
getL10nPath in interface L10nPackProviderIL10nPathEntry objects.public void prefetchL10nPacks()
L10nPackProviderIThis 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 L10nPackProviderICopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.