Class LocalizationManager
- java.lang.Object
-
- com._1c.g5.v8.dt.common.localization.LocalizationManager
-
- All Implemented Interfaces:
ILocalizationProvider<String>
public class LocalizationManager extends Object implements ILocalizationProvider<String>
Manages the set of localizationResourceBundle
s registered viacom._1c.g5.v8.dt.common.localization.bundles
extension point.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalizationManager
getInstance()
Gets the only instance of theLocalizationManager
.String
getString(String key)
Obtains string representation of a givenobject
specific to this provider.
-
-
-
Method Detail
-
getInstance
public static LocalizationManager getInstance()
Gets the only instance of theLocalizationManager
. Thread-safe.- Returns:
- global shared instance of
LocalizationManager
.
-
getString
public String getString(String key)
Description copied from interface:ILocalizationProvider
Obtains string representation of a givenobject
specific to this provider.- Specified by:
getString
in interfaceILocalizationProvider<String>
- Parameters:
key
- object to obtain string representation of. Should not benull
.- Returns:
- obtained string representation or
null
if no presentation available.
-
-