public class LocalizedProperties extends Object implements IMemoryManageable
IMemoryManageable.FreeMemoryLevel| Constructor and Description |
|---|
LocalizedProperties(Application application)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
freeMemory(IMemoryManageable.FreeMemoryLevel level)
Request to free some memory.
|
Collection<String> |
getAvailableLanguageCodes()
Return the list of available languages.
|
Set<String> |
getDeclaredNamespaces() |
String |
getDescription()
Desciption.
|
List<String> |
getItemsDescription()
Describe each item that can be freed.
|
AsyncSupplier<Map<String,String>,IOException> |
getNamespaceContent(String namespace,
String[] languageTag)
Return the localizable properties for the given namespace and language.
|
Set<String> |
getNamespaceLanguages(String namespace)
Return the languages declared for the given namespace.
|
AsyncSupplier<String,NoException> |
localize(String[] languageTag,
String namespace,
String key,
Serializable... values)
Localization.
|
String |
localizeSync(String[] languageTag,
String namespace,
String key,
Serializable... values)
Localization.
|
IAsync<IOException> |
registerNamespace(String namespace,
String path,
ClassLoader classLoader)
Register the path on which localized properties can be found for a namespace.
|
IAsync<IOException> |
registerNamespaceFrom(Class<?> cl,
String namespace,
String subPath)
Register the path on which localized properties can be found for a namespace.
|
public LocalizedProperties(Application application)
public IAsync<IOException> registerNamespace(String namespace, String path, ClassLoader classLoader)
public IAsync<IOException> registerNamespaceFrom(Class<?> cl, String namespace, String subPath)
public String localizeSync(String[] languageTag, String namespace, String key, Serializable... values)
public AsyncSupplier<String,NoException> localize(String[] languageTag, String namespace, String key, Serializable... values)
public String getDescription()
IMemoryManageablegetDescription in interface IMemoryManageablepublic List<String> getItemsDescription()
IMemoryManageablegetItemsDescription in interface IMemoryManageablepublic void freeMemory(IMemoryManageable.FreeMemoryLevel level)
IMemoryManageablefreeMemory in interface IMemoryManageablepublic Collection<String> getAvailableLanguageCodes()
public Set<String> getNamespaceLanguages(String namespace)
public AsyncSupplier<Map<String,String>,IOException> getNamespaceContent(String namespace, String[] languageTag)
Copyright © 2019. All rights reserved.